jmurph420A
New member
- Local time
- Today, 11:56
- Joined
- Apr 23, 2020
- Messages
- 6
Good day all, I am working on a VERY simple onClick Event in a report, then when clicked, should open a form to a specific record.
(first time poster LONG TIME learner)
Code is:
This again, should open the Clients form, and filter on the value passed from the Control value on the report, to the Control value on the Clients form.
The form allows edits and data entry, however, regardless of what item I click on the report, it will open the Clients form without passing the Control filter.
The Clients form data source is a filtered query based on a different field.
I did verify the value of Control I (attempt to)pass to the clients form is in the correct format (string) and does exist in the table.
All assistance appreciated
(first time poster LONG TIME learner)
Code is:
Code:
Private Sub Company_Click()
stcriteria = Me.Control.Value
DoCmd.OpenForm "Clients", , , "[Control]='" & Me.Control.Value & "'"
End Sub
This again, should open the Clients form, and filter on the value passed from the Control value on the report, to the Control value on the Clients form.
The form allows edits and data entry, however, regardless of what item I click on the report, it will open the Clients form without passing the Control filter.
The Clients form data source is a filtered query based on a different field.
I did verify the value of Control I (attempt to)pass to the clients form is in the correct format (string) and does exist in the table.
All assistance appreciated