Re: CreateField error
From: Max (max_nospam_at_mscm.info)
Date: 10/22/04
- Previous message: Kevin Yu [MSFT]: "Re: VB error with access Help"
- In reply to: Douglas J. Steele: "Re: CreateField error"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 22 Oct 2004 10:58:53 +0100
Thanks,
It is present, the error ocurs when I try to compile the project.
I changed the DAO to 3.5 and have fixed most of the errors with explicitly
designating
DAO as in db = DAO.database
Max
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:eemExj7tEHA.1272@TK2MSFTNGP12.phx.gbl...
> Does field OpNoteID exist in the table?
>
> Also, I'd recommend replacing the DAO 2.5/3.5 reference with the DAO 3.5x
> reference. DAO 2.5/3.5 is only intended for backwards compatibility.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>
> "Max" <max_nospam@mscm.info> wrote in message
> news:cl7i8i$8qs$1$8302bc10@news.demon.co.uk...
>> Hi,
>> I am using Access97 on Windows XP desktop and the following references:
>> Visual basic VBA322.DLL
>> Access 8.0 Object Library
>> Common controls 6.0
>> Word 10.0
>> DAO 2.5/3.5
>>
>> The following code generates a "Method or data member not found" error on
>> the CreateField.
>>
>> Set tdf = dbs.TableDefs!Patients
>> Set idx = tdf.CreateIndex("PatientIDIndex")
>> Set fld1 = idx.CreateField("OpNoteID")
>>
>> Any ideas?
>>
>> Thanks in advance,
>> Max
>>
>>
>>
>
>
- Previous message: Kevin Yu [MSFT]: "Re: VB error with access Help"
- In reply to: Douglas J. Steele: "Re: CreateField error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|