I have a main form. Upon filling in a combo box it then displays a subform (based on a query that uses values in the combo box on where clause)
THe subform has the paramater Data Entry = 'No' as I want users to see all existing records and all additions/deletions and edits.
However I want to move to the last record to default, allowing the user to add a record without navigating themselves to the last record.
A popular request, so found code (see below)
Expand|Select|Wrap|Line Numbers
- Private Sub cboDeliveryName_AfterUpdate()
- Me.qryStudentsResultsDeliverysubform1.Enabled = True
- Me.qryStudentsResultsDeliverysubform1.Visible = True
- Me.qryStudentsResultsDeliverysubform1.SetFocus
- With Me.qryStudentsResultsDeliverysubform1.Form.RecordsetClone
- If Not .BOF Then
- .MoveLast
- MsgBox "In here"
- Me.qryStudentsResultsDeliverysubform1.Form.Bookmark = .Bookmark
- End If
- End With
- End Sub
I cant even print the current record when im in the subform to see whats happening.
Can anyone please advice and assist?
Thanks
Rob