I am coding in vba looking where i am filtering using the following lines.
set rsTemp1 currentdb.openrecordset ("tblReceiving")
set rstemp2 = currentdb.openrecordset ("Select * From [Table1] Where Date = rstemp1!ReceiptDate")
I know that if the ReceiptDate is a text field, then the the entry would be Where Date = '" & rstemp1!ReceiptDate & "'
What is the proper syntax so it realizes that it is a date field?
Can someone also tell me what the proper syntax is for a numeric field?
This seems to be something that is confusing me.
Thanks
I keep getting mismatch in the filter.
set rsTemp1 currentdb.openrecordset ("tblReceiving")
set rstemp2 = currentdb.openrecordset ("Select * From [Table1] Where Date = rstemp1!ReceiptDate")
I know that if the ReceiptDate is a text field, then the the entry would be Where Date = '" & rstemp1!ReceiptDate & "'
What is the proper syntax so it realizes that it is a date field?
Can someone also tell me what the proper syntax is for a numeric field?
This seems to be something that is confusing me.
Thanks
I keep getting mismatch in the filter.