G
Guest
Hi,
On form opening, I want to populate a form combination box from a table
where the user has selected one recordset as the default.
The way the default is chosen is by going to frmProvider and pushing a
command button to chose that record as default, but I need help with how to
do that. Right now I have:
'Makes this provider the default choice when the pilot data form is opened
Private Sub cmdDefault_Click()
Dim rsProv As Recordset
Set rsProv = Me.Recordset
End Sub
Then on the other form, on open property, should I have something like:
'Opens form pilot to new record & loads default provider
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
Me.cboProv.rsProv
End Sub
Thank you,
Karl
On form opening, I want to populate a form combination box from a table
where the user has selected one recordset as the default.
The way the default is chosen is by going to frmProvider and pushing a
command button to chose that record as default, but I need help with how to
do that. Right now I have:
'Makes this provider the default choice when the pilot data form is opened
Private Sub cmdDefault_Click()
Dim rsProv As Recordset
Set rsProv = Me.Recordset
End Sub
Then on the other form, on open property, should I have something like:
'Opens form pilot to new record & loads default provider
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
Me.cboProv.rsProv
End Sub
Thank you,
Karl