M
Mark1
My form's current record comes from my master table.
I want a command button on my form that will duplicate the current record in
my master table and then make the form be filtered to that new record.
Right now, I have a query that duplicates the current record in the table.
And I have VBA code that is going to do it all, but I just don't know what to
put in my filter statement. Here's my code.... I'll leave the filter
statement (in quotes) blank. Thank you!!!!!!!!!!!!!!!!!
Private Sub Command6_Click()
DoCmd.OpenQuery "Duplicate_MRSA_query"
Dim filter_one As String
filter_one = " "
Me.Filter = filter_one
Me.FilterOn = True
End Sub
I want a command button on my form that will duplicate the current record in
my master table and then make the form be filtered to that new record.
Right now, I have a query that duplicates the current record in the table.
And I have VBA code that is going to do it all, but I just don't know what to
put in my filter statement. Here's my code.... I'll leave the filter
statement (in quotes) blank. Thank you!!!!!!!!!!!!!!!!!
Private Sub Command6_Click()
DoCmd.OpenQuery "Duplicate_MRSA_query"
Dim filter_one As String
filter_one = " "
Me.Filter = filter_one
Me.FilterOn = True
End Sub