Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2006

Tip: Looking for answers? Try searching our database.

Data Member not Found

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LJG - 29 Dec 2006 10:50 GMT
Can anyone tell me why I keep getting the message :

Method or data member not found

: when I compile my project

This refers to List0 which IS the name of the list control I have on my
form. My concern would be that when I start to write the line 'rst.FindFirst
"salescontactID = " & List0' in the code window FindFirst does not show as a
choice only Find.

This is my code, any suggestions please

Dim rst As Recordset

Set rst = Forms!frmNewClientDetails.RecordsetClone

rst.FindFirst "salescontactID = " & List0
Forms!frmNewClientDetails.Bookmark = rst.Bookmark
DoCmd.Close acForm, "frmNewClientSelect"

Thanks
Signature

LJG
-----------------------------------------------------
Access 2000, WinXP pro, 512mb

'69 Camaro - 29 Dec 2006 11:12 GMT
Hi.

> rst.FindFirst "salescontactID = " & List0

FindFirst requires the DAO library.  Access 2000 uses the ADO library by
default, so if this is not a database that was converted from Access 97, it
doesn't have the correct library referenced.

> Dim rst As Recordset

You should disambiguate this declaration if you choose to keep the ADO library
and add the DAO library, too.  Change it to:

Dim rst As DAO.Recordset

For more information on this common problem, please see the following Web page
for a link to Access MVP Tom Wickerath's article, "ADO and DAO Library
References in Access Databases":
http://www.Access.QBuilt.com/html/articles.html

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact info.

> Can anyone tell me why I keep getting the message :
>
[quoted text clipped - 18 lines]
>
> Thanks
LJG - 29 Dec 2006 12:12 GMT
Cheers thanks for that, I have been using an old Access 97 book as guidance.

Thanks
Les

> Hi.
>
[quoted text clipped - 46 lines]
>>
>> Thanks
'69 Camaro - 29 Dec 2006 18:15 GMT
> thanks for that, I have been using an old Access 97 book as guidance.

You're welcome.  Hopefully, you'll get an updated version in your Christmas
stocking next year.  :-)

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact info.

> Cheers thanks for that, I have been using an old Access 97 book as guidance.
>
[quoted text clipped - 50 lines]
>>>
>>> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.