I have a form for equipment time entry that I am having a problem with.
I can't get past this code:
Set rs = DB.OpenRecordset("SELECT * FROM tblequipcat WHERE EquipmentNo = " & Me.EquipIDTE, dbOpenForwardOnly)
"tblEquipCat" hold the master files for the equipment we use.
"EquipmentNo" is the field identifying the piece of equipment. It is a text field (alphanumeric).
"Me. EquipIDTE" is the field on the equipment time entry form that eqivalates to the EquipmentNo in the tblEquipCat.
When I get to this code, it causes the code to cancel, but I can't figure out why.
Also, if I open the form and then try to view it in design, it causes a reportable error and shuts Access down.
Help. I have an identical form for Payroll time entry and it works fine, all I am doing is changing table and field names basically.
Help please.
I can't get past this code:
Set rs = DB.OpenRecordset("SELECT * FROM tblequipcat WHERE EquipmentNo = " & Me.EquipIDTE, dbOpenForwardOnly)
"tblEquipCat" hold the master files for the equipment we use.
"EquipmentNo" is the field identifying the piece of equipment. It is a text field (alphanumeric).
"Me. EquipIDTE" is the field on the equipment time entry form that eqivalates to the EquipmentNo in the tblEquipCat.
When I get to this code, it causes the code to cancel, but I can't figure out why.
Also, if I open the form and then try to view it in design, it causes a reportable error and shuts Access down.
Help. I have an identical form for Payroll time entry and it works fine, all I am doing is changing table and field names basically.
Help please.