HELLO ALL!
My task is this:
My main form uses the CUA# (tb_CUA) as the Primary Key. (The CUA# is the number that we have assigned to a vehicle)
Also on that form is a button to open a new “Service Record” for that CUA#.
I am now trying to add another button that would open a listing of the ‘EXISTING” service records for that CUA# (vehicle), so that one of those records may be selected and then edited/printed/etc.
The code that I am using on the "View/Edit and Existing Service Record" button is this:
1. Private Sub Command856_Click()
2. DoCmd.OpenForm "SERVICE", , , "tb_CUA = " & Me.tb_CUA
3.End Sub
(NOTE: the Form "SERVICE" is simply a form that I created to list all of the services that had been performed on that vehicle. It is currently set as a "Continuous Forms", and contains a checkbox, the date, mileage, work order number, and technician for each line of service.)
The problem that I am experiencing with this form is that it is only showing all of the records for that vehicle. It won't let me select any of the records.
I have the forms Filter set to tb_CUA, and that is working fine. I also have the "Data Entry" set to No. If I change that to Yes, nothing shows up on the form.
Would you mind passing on any suggestions that you might have that might help me get over this hump???
My task is this:
My main form uses the CUA# (tb_CUA) as the Primary Key. (The CUA# is the number that we have assigned to a vehicle)
Also on that form is a button to open a new “Service Record” for that CUA#.
I am now trying to add another button that would open a listing of the ‘EXISTING” service records for that CUA# (vehicle), so that one of those records may be selected and then edited/printed/etc.
The code that I am using on the "View/Edit and Existing Service Record" button is this:
1. Private Sub Command856_Click()
2. DoCmd.OpenForm "SERVICE", , , "tb_CUA = " & Me.tb_CUA
3.End Sub
(NOTE: the Form "SERVICE" is simply a form that I created to list all of the services that had been performed on that vehicle. It is currently set as a "Continuous Forms", and contains a checkbox, the date, mileage, work order number, and technician for each line of service.)
The problem that I am experiencing with this form is that it is only showing all of the records for that vehicle. It won't let me select any of the records.
I have the forms Filter set to tb_CUA, and that is working fine. I also have the "Data Entry" set to No. If I change that to Yes, nothing shows up on the form.
Would you mind passing on any suggestions that you might have that might help me get over this hump???