Hi All,
I have a command that uses the following:
If sbfItems.Form.Recordset.RecordCount > 0 Then
to check for existing records in a subform. I have code to go on and add a record to the underlying table if it = 0 but what I want to do now is be able to add a record to the subform’s recordset and then copy detail down to leave a blank record at the top, which will be then filled in.
As my records are sorted by record ID this will put my “new detail” in the top position.
Once I know how to define the recordset I am pretty sure I know how to read/write the info from each field down 1 record using movelast movenext moveprevious etc unless there is a way to copy then write the entire record at once.
So how do I write the OpenRecordset command? Set rst = CurrentDb.OpenRecordset(sbfItems.Form.Recordset)
Thanks in advance.
Allan