GJT
Registered User.
- Local time
- Today, 17:17
- Joined
- Nov 5, 2002
- Messages
- 116
Hi People!
I am using the following code to display the Find dialog :
Private Sub cmdInvoiceSearch_Click()
On Error GoTo Err_cmdInvoiceSearch_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
'
Exit_cmdInvoiceSearch_Click:
Exit Sub
Err_cmdInvoiceSearch_Click:
MsgBox err.Description
Resume Exit_cmdInvoiceSearch_Click
End Sub
________________________________
Am I right in assuming that if I use this dialog and then want to use the recordset object underlying my form (by way of RecordsetClone), that I need to move the recordset pointer using 'Findfirst' to locate the same record, as that reflected on my form????????
At the moment, when the form is refreshed with the record data, I get an 'Invalid Argument' runtime error 3001, when the FindFirst method is executed. If I manually close the MS Access Find dialog box, the line is executed without error??????
Any ideas......?????
NB. The reason I am using this approach is that I have a command button - whose state is either on/off depending on the boolean value in the appropriate field of the recordset. Just binding the button to the field in the table has no effect! Hence, the method described above.....
Guy
I am using the following code to display the Find dialog :
Private Sub cmdInvoiceSearch_Click()
On Error GoTo Err_cmdInvoiceSearch_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
'
Exit_cmdInvoiceSearch_Click:
Exit Sub
Err_cmdInvoiceSearch_Click:
MsgBox err.Description
Resume Exit_cmdInvoiceSearch_Click
End Sub
________________________________
Am I right in assuming that if I use this dialog and then want to use the recordset object underlying my form (by way of RecordsetClone), that I need to move the recordset pointer using 'Findfirst' to locate the same record, as that reflected on my form????????
At the moment, when the form is refreshed with the record data, I get an 'Invalid Argument' runtime error 3001, when the FindFirst method is executed. If I manually close the MS Access Find dialog box, the line is executed without error??????
Any ideas......?????
NB. The reason I am using this approach is that I have a command button - whose state is either on/off depending on the boolean value in the appropriate field of the recordset. Just binding the button to the field in the table has no effect! Hence, the method described above.....
Guy