S
sww32
Guest
Help!!!
I am new to access and data bases
I have a table "Body shop " with fields making up Primary key
Shift can be days,lates or nights
Date Short date
Line integer 1 or 2
Given the 3 fields as strings Strshift, Strdate and StrLine
I cannot open a form at correct record, here is what i have tried
Set recset = db.OpenRecordset("Body Shop")
recset.Index = "PrimaryKey"
recset.Seek "=", Strdate, StrShift, StrLine
DoCmd.OpenForm FormName, , , , acFormEdit, acWindowNormal
recset.Close
db.Close
Set recset = Nothing
Set db = Nothing
Thanks
I am new to access and data bases
I have a table "Body shop " with fields making up Primary key
Shift can be days,lates or nights
Date Short date
Line integer 1 or 2
Given the 3 fields as strings Strshift, Strdate and StrLine
I cannot open a form at correct record, here is what i have tried
Set recset = db.OpenRecordset("Body Shop")
recset.Index = "PrimaryKey"
recset.Seek "=", Strdate, StrShift, StrLine
DoCmd.OpenForm FormName, , , , acFormEdit, acWindowNormal
recset.Close
db.Close
Set recset = Nothing
Set db = Nothing
Thanks