J
Jim
I am converting a database from 97 to XP. I have a pop
up form that I use to help people find records. It works
fine in 97 and other XP databases. I am having trouble
with only one database and it is driving me nuts.
I get an error message "A macro set to one of the current
field properties failed because of an error in a
FindRecord action argument. The frustrating part about
it is if I set the code to stop at the find record code
line, goto debug when it stops and then continue the code
without making any changes it works fine. If I take out
the temporary stop for that line of code I get the error.
The code is as follows:
DoCmd.OpenForm stDocName, acNormal
Forms![frmProdInfo]![cboOrderID].Enabled = True
Forms![frmProdInfo]![cboOrderID].Locked = False
Forms![frmProdInfo]![cboOrderID].SetFocus
'THE FOLLOWING LINE GIVES THE ERROR. FWhat is the ID
for 'the control (combo box)
DoCmd.FindRecord FWhat, acAnywhere, False, , False, , True
Forms![frmProdInfo]![tbPlant].SetFocus
Forms![frmProdInfo]![cboOrderID].Locked = True
Forms![frmProdInfo]![cboOrderID].Enabled = False
All suggestions are welcome.
Jim
up form that I use to help people find records. It works
fine in 97 and other XP databases. I am having trouble
with only one database and it is driving me nuts.
I get an error message "A macro set to one of the current
field properties failed because of an error in a
FindRecord action argument. The frustrating part about
it is if I set the code to stop at the find record code
line, goto debug when it stops and then continue the code
without making any changes it works fine. If I take out
the temporary stop for that line of code I get the error.
The code is as follows:
DoCmd.OpenForm stDocName, acNormal
Forms![frmProdInfo]![cboOrderID].Enabled = True
Forms![frmProdInfo]![cboOrderID].Locked = False
Forms![frmProdInfo]![cboOrderID].SetFocus
'THE FOLLOWING LINE GIVES THE ERROR. FWhat is the ID
for 'the control (combo box)
DoCmd.FindRecord FWhat, acAnywhere, False, , False, , True
Forms![frmProdInfo]![tbPlant].SetFocus
Forms![frmProdInfo]![cboOrderID].Locked = True
Forms![frmProdInfo]![cboOrderID].Enabled = False
All suggestions are welcome.
Jim