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 #] & "';"
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 #] & "';"