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

data type mismatch on query

Status
Not open for further replies.

rry2k

Programmer
Jun 28, 2001
678
US
Hi,

I have the follwing code and am getting a dtm.
Everything is assiged the same type(int) but it's not working. vartest is passed from another form

Thanks for the help..Russ


Private Sub Form_Open(Cancel As Integer)
Dim dbs As Database, holder As Integer
Dim rec As Recordset
Forms![main_frm]![AAU Quote #] = vartest
holder = vartest
Set dbs = CurrentDb
Set rec = dbs.OpenRecordset("select * from [Main] where [AAU Quote #]='" & _
Forms![main_frm]![AAU Quote #] & "';")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top