Which line is giving the error? And if you're going to assign a forms Record Source as a defined recordset, then:
Me.RecordSource=rs.Clone
But I don't know why you are defining a recordset and then assigning it to a form RecordSource anyway. Just assign it directly as shown below:
Me.RecordSource="tblVATGroup"
But I don't know why you are defining a recordset and then assigning it to a form RecordSource anyway. Just assign it directly as shown below:
Me.RecordSource="tblVATGroup"
because the I am opening the tables from different database. Set db1 = Workspaces(0).OpenDatabase(strDbPath, False, False, "MS Access;PWD=" & InputBox("Enter Database Passowrd"))
From your example I believe you mean recordsource.
However, I agree that there is usually no reason to create your own recordset then bind it to the "unbound" form. Just provide the recordsource.
From your example I believe you mean recordsource.
However, I agree that there is usually no reason to create your own recordset then bind it to the "unbound" form. Just provide the recordsource.
I do it like this because I am running this app on a server with a runtime environment and it's modifying a backend Database, this gives me hard time but better from copying the backend to another device and copying it back (live users exist).
This application pass SQL commands to the back end (add fields, rename fields, etc...) and open the backend tables through forms to edit data directly (admin stuff).