B
Bradley C. Hammerstrom
Access2000
I have a command button on this main form that shows all records and goes to
the first record, buy default. I want a way to keep the current record
current after the ShowAll button is clicked.
I tried the cmdButton code below, but it still goes to the first record.
***********
'Remember current PhotoID
Dim strCurrentPhoto As String
strCurrentPhoto = Me.frmMainSub1.Form.PhotoID
'Remove any filter.
DoCmd.ShowAllRecords
'Go to same photo
Forms.frmMain.frmMainSub1.Form.Recordset.FindFirst "PhotoID= " &
strCurrentPhoto
***************
Brad H.
I have a command button on this main form that shows all records and goes to
the first record, buy default. I want a way to keep the current record
current after the ShowAll button is clicked.
I tried the cmdButton code below, but it still goes to the first record.
***********
'Remember current PhotoID
Dim strCurrentPhoto As String
strCurrentPhoto = Me.frmMainSub1.Form.PhotoID
'Remove any filter.
DoCmd.ShowAllRecords
'Go to same photo
Forms.frmMain.frmMainSub1.Form.Recordset.FindFirst "PhotoID= " &
strCurrentPhoto
***************
Brad H.