Good morning!
I am using Access 2007. I have two forms that are for other users to enter data.
Form 1 is strictly a "search" type form. There are two command buttons to allow the user to search by idea number or project number. Once the user enters the appropriate number they click the command button and the following code executes:
This code works perfectly when the DATA FORM opening has a recordset of a table. However, I have some forms that use a recordset of a query. This is where I'm running into trouble.
Is there a way to have the "DATA FORM" open for only the record indicated on by "SEARCH FORM" when the recordset of the "DATA FORM" is a query?
Attached are examples of what the forms look like.
Thank you!
I am using Access 2007. I have two forms that are for other users to enter data.
Form 1 is strictly a "search" type form. There are two command buttons to allow the user to search by idea number or project number. Once the user enters the appropriate number they click the command button and the following code executes:
Code:
Private Sub Command5_Click() DoCmd.OpenForm "Project Contacts", , , "[Idea Number]=" & Me![Text1] Me.Text1 = "" Me.Refresh DoCmd.Close acForm, "ProjectSearch ProjContacts" End Sub Private Sub Command6_Click() DoCmd.OpenForm "Project Contacts", , , "[CCR]=" & Me![Text3] Me.Text3 = "" Me.Refresh DoCmd.Close acForm, "ProjectSearch ProjContacts" End Sub
Is there a way to have the "DATA FORM" open for only the record indicated on by "SEARCH FORM" when the recordset of the "DATA FORM" is a query?
Attached are examples of what the forms look like.
Thank you!
Comment