Hello, I have a MS Access continuous subform that was using a query as the recordsource.
I changed it to use a recordset instead because when the query was used, the changes to the subform values directly changed the tables under the query. I wanted the changes to be 'in-memory' so that I could check them before applying them to the tables.
When I changed the subform to use the recordset, it is now 'read-only' and I can't change anything on the subform (bummer). Here is my creation of the recordset:
Am i missing some parameter to allow editing on the recordset while it is in memory?
Thanks for any assistance with this.
I changed it to use a recordset instead because when the query was used, the changes to the subform values directly changed the tables under the query. I wanted the changes to be 'in-memory' so that I could check them before applying them to the tables.
When I changed the subform to use the recordset, it is now 'read-only' and I can't change anything on the subform (bummer). Here is my creation of the recordset:
Code:
Set rsLandSpecies = CurrentDb.OpenRecordset _ ("SELECT LandingSpecies.cd_Document, LandingSpecies.cd_Species, " _ & "Species.Description, LandingSpecies.Quantity, " _ & "LandingSpecies.Num_Indiv, LandingSpecies.Price, LandingSpecies.Value " _ & "FROM LandingSpecies, Species " _ & "WHERE LandingSpecies.cd_Document = " & tx_cd_doc.Value & " " _ & "AND LandingSpecies.cd_Species = Species.cd_Species " _ & "ORDER BY Description", dbOpenDynaset) Set Me!SpeciesPerDocument.Form.Recordset = rsLandSpecies
Thanks for any assistance with this.
Comment