PC Review


Reply
Thread Tools Rate Thread

Create Table in module: references

 
 
Ron
Guest
Posts: n/a
 
      17th Sep 2003
I believe I am making an easy error. Running Office XP,
I want to create a table using the CreateTableDef
method. Pretty much copied from the help section with a
few modifications. However, it pops a message box
with "Sub or Function Not defined". It also is not
recognized as I cannot use the intelisense editor when I
type it in. I can, however, do this on my home machine.
Any suggestions? TIA,
Ron
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      17th Sep 2003
CreateTableDef is a DAO method, and by default Access 2002 only has a
reference to ADO.

With any code module open, select Tools | References from the menu bar,
scroll through the list of available references until you find the one for
Microsoft DAO 3.6 Object Library, and select it. If you're not going to be
using ADO, uncheck the reference to Microsoft ActiveX Data Objects 2.x
Library

If you have both references, you'll find that you may need to "disambiguate"
certain declarations, because objects with the same names exist in the 2
models. For example, to ensure that you get a DAO recordset, you'll need to
use Dim rsCurr as DAO.Recordset (to guarantee an ADO recordset, you'd use
Dim rsCurr As ADODB.Recordset)

The list of objects with the same names in the 2 models is Connection,
Error, Errors, Field, Fields, Parameter, Parameters, Property, Properties
and Recordset


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele


"Ron" <(E-Mail Removed)> wrote in message
news:045501c37d5e$cbab39e0$(E-Mail Removed)...
> I believe I am making an easy error. Running Office XP,
> I want to create a table using the CreateTableDef
> method. Pretty much copied from the help section with a
> few modifications. However, it pops a message box
> with "Sub or Function Not defined". It also is not
> recognized as I cannot use the intelisense editor when I
> type it in. I can, however, do this on my home machine.
> Any suggestions? TIA,
> Ron



 
Reply With Quote
 
Marshall Barton
Guest
Posts: n/a
 
      18th Sep 2003
Ron wrote:

>I believe I am making an easy error. Running Office XP,
>I want to create a table using the CreateTableDef
>method. Pretty much copied from the help section with a
>few modifications. However, it pops a message box
>with "Sub or Function Not defined". It also is not
>recognized as I cannot use the intelisense editor when I
>type it in. I can, however, do this on my home machine.


Sounds like you don't have a reference to the DAO library.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
Tim Ferguson
Guest
Posts: n/a
 
      18th Sep 2003
"Ron" <(E-Mail Removed)> wrote in
news:045501c37d5e$cbab39e0$(E-Mail Removed):

> I want to create a table using the CreateTableDef
> method. Pretty much copied from the help section with a
> few modifications. However, it pops a message box
> with "Sub or Function Not defined".


So what is the Sub or Function... and have you defined it?


Tim F

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create table of References? =?Utf-8?B?SWFuX2M=?= Microsoft Word Document Management 1 19th Aug 2006 04:42 PM
Module to make all absolute references relative =?Utf-8?B?UHJvX0QgTWlrZQ==?= Microsoft Excel Programming 3 26th May 2006 06:41 PM
Need Help for extended Stored Procedure When running on win 2003(Cannot load the DLL GenerateIdentity.dll, or one of the DLLs it references. Reason: 126(The specified module could not be found.) SSW Microsoft VC .NET 0 10th May 2004 06:40 AM
Excel references and Intellisense with my own Class Module Rob G Microsoft Excel Programming 2 23rd Mar 2004 05:03 PM
Want to create a 'lookup' that references the same table =?Utf-8?B?SmFjcXVp?= Microsoft Access Getting Started 3 2nd Feb 2004 07:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:30 PM.