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 Programming / September 2007

Tip: Looking for answers? Try searching our database.

findfirst - 2 search criteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
liz - 29 Sep 2007 17:40 GMT
i wish to find a record based on 2 criteria, in this case i wish to search
for a particular job id and then date type as each job id could have a
multiple amount of date types.

rs.Findfirst "[Job ID] = " & aJob  AND "[Date Type] = " &aDate

i am not sure how to program the AND.

Signature

thanks
liz

Rick Brandt - 29 Sep 2007 17:57 GMT
> i wish to find a record based on 2 criteria, in this case i wish to
> search for a particular job id and then date type as each job id
[quoted text clipped - 3 lines]
>
> i am not sure how to program the AND.

It goes inside the quotes.  You also need to delimit a date with #.

rs.Findfirst "[Job ID] = " & aJob  & " AND [Date Type] = #" & aDate & "#"

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

 
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.