I have a table called JB_Jobs, The key field is JB_JobBibNo a text field, it has the key symbol in front of it and in its index property is Yes (no duplicates).
Code to use seek:
Set db = CurrentDb()
Set JBrec = db.OpenRecordset("JB_Jobs", dbOpenTable)
If Not JBrec.BOF And Not JBrec.EOF then 'at least one record exists in table
JBrec.Index = "JB_Jobs.JB_JobBidNo"
I get an error :"'JB_Jobs.JB_JobBidNo' isn't an index in this table"
What am I nissing??
Code to use seek:
Set db = CurrentDb()
Set JBrec = db.OpenRecordset("JB_Jobs", dbOpenTable)
If Not JBrec.BOF And Not JBrec.EOF then 'at least one record exists in table
JBrec.Index = "JB_Jobs.JB_JobBidNo"
I get an error :"'JB_Jobs.JB_JobBidNo' isn't an index in this table"
What am I nissing??