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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search form

Status
Not open for further replies.
Feb 29, 2004
75
US
I am lookign for designing a multisearch form where a user can search the database based on what is entered in the text box. There would be about three to four text boxes and a search button. i believe the search button would call an on_click fucntion which would search what was entered in the text box against the corresponding fields in the database. I am fairly new to Access and any help would be very appreciated..
 
I am getting a error: userdefined type not defined
on dim dbNm As Database


Private Sub cmdSearch_Click()
'Set the Dimensions of the Module
Dim strSQL As String, strOrder As String, strWhere As String
Dim dbNm As Database
Dim qryDef As QueryDef
Set dbNm = CurrentDb()
 
Dim dbNm As Database ->Compile Error User-defined type not defined
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top