Hey Paul...
Yes, I did change it - worked great! But I stopped trying to get it to work from within an embedded macro. I created new queries designed to work specifically with the new form.
There was still an error popping up but I fixed that by changing the reference in the queries criteria from .Column(0) to .Value (not sure why that worked, but it did??)
At the moment nearly everything is working as I need it to. I've just a couple more barriers to completion
The first one of which is I am back to wrestling with trying to get an update query to run from...Yep, an embedded macro.
Here is what I have in a simple standard module
Code:
Public Function ResetPrintStatus()
Call ResetPrintStatus
End Function
And here is what I have in the form module of the form which has the button I am clicking
Code:
Private Sub ResetPrintStatus()
Dim MySQL As String
MySQL = "UPDATE [tblUINPort] SET [Printed]= False WHERE [RefNum]= '" & Me.TxtRefNum.Value & "'"
CurrentDb.Execute MySQL
End Sub
The idea here is pretty simple
If any changes are made to a record which was already printed I want to update the Print status (Thank you for that, Paul) back to False so that it will show up on the records not printed search.
The embedded macro is a simple Save macro and the Action I added is the RunCode Action - Which of course asks for the name of a function.
As for downloading the Db - Yes, I will send you a copy - I will need to export it out as it is part of a larger (Huge actually) corporate database. Fortunately, all tables at the moment are local.
Thanks Paul