Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where to find method reference, errors

Status
Not open for further replies.

ykfc

Programmer
Mar 6, 2004
66
AU
I want to write VBA codes in MS Access 2000 environment to access data in SQL server. How do we find a complete method reference to use with DAO or ADO?

For example, though VB6 is able is provide a hint that a DAo_Openrecordset method requires parameters in the order:
name as string, [type],[ options], [lockEdit], but where could I find the options allowed for [Options] or what values of lockEdits I could supply for this openrecord method?

Also, if a program runs with an error, I do not receive any help even I click the "help" button in response to a dialog box with run-time error xxxx. What do I miss out?
 
ykfc,

In the VB editor, set a reference to the object library in question via Tools/References.

Also at search on keywords like openrecordset, ado, dao, visual basic.

Skip,

[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue]
 
They are enumerations, and you can view them in the object browser, or by typing the proper prefixes first, such as:
[tt]
DAO.RecordsetOptionEnum.dbFailOnError
DAO.RecordsetTypeEnum.dbOpenDynaset[/tt]

VBSlammer
redinvader3walking.gif

"You just have to know which screws to turn." - Professor Bob
 
Search your local hard drives for dao*.chm;ado*.chm

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top