Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default DAO Late Binding?

Bingo. That's exactly what's happening.

I'll take a look at it on Monday when I go back in.

Thanks, Tom. I knew you'd have an answer if nobody else
did. :)

-Donna


-----Original Message-----
Are you using any constants in your createdatabase

expression. (such as

Set nWindEx = Workspaces(0).CreateDatabase

(Application.Path _
& "\NWINDEX.MDB", dbLangGeneral) ' dbLangGeneral

would be "" rather than
its early bound defined value

of ";LANGID=0x0409;CP=1252;COUNTRY=0" (at
least that is its value on my machine).

or perhaps you use the createworkspace method that also

uses a constant

when you late bind, these constants are empty variables -

they are not
defined constants anymore. The will be interpreted as

having value of zero
(for longs, or null string for strings). this is a

common problem people
overlook when using latebinding - this would be

particularly true in your
case where you used early binding to do the development

and are switching to
late binding. You need to hard code values where you

have constants. (or
define the constants in your own code).

Just a thought.

--
Regards,
Tom Ogilvy



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Late Binding issue with Excel.Application object [email protected][_2_] Excel Discussion (Misc queries) 2 August 4th 09 08:10 AM
VB Extensibility library and "late binding" Dennis Excel Discussion (Misc queries) 0 March 30th 05 10:51 PM
Creating a MailItem in Outlook from Excel using Late Binding Steven Kelder Excel Programming 3 December 17th 03 05:34 PM
Early vs Late Binding - Word John Wilson Excel Programming 6 November 13th 03 03:21 PM
DAO objects with late binding in Excel? Chris Excel Programming 0 August 21st 03 07:28 PM


All times are GMT +1. The time now is 03:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"