T
Tom
I really haven't ANYTHING in the way of forms, other than run the
wizard. So to say I'm a beginner at forms is an understatement.
I have a table which uses an autonumber field as the primary key. I'd
like to have a form to use to update my records. But I don't know how
to go about choosing my record. I'm thinking a drop down list showing
my "Name" field would be what I want. (Or should I just feed the form
the key?)
I've tried using a drop down list, but it doesn't seem to work. I'm
assuming it's an event procedure like this:
Private Sub lbxDestID_LostFocus()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[DestID] = " & Str(Me![lbxDestID])
Me.Bookmark = rs.Bookmark
End Sub
but I don't know where to place it. On the form? Or a control? On
Got Focus? Lost Focus? Other?
I haven't been able to find any examples to try and copy, so I'm
really "flying blind" here.
Any help is appreciated.
Thanks in advance.
Tom
wizard. So to say I'm a beginner at forms is an understatement.
I have a table which uses an autonumber field as the primary key. I'd
like to have a form to use to update my records. But I don't know how
to go about choosing my record. I'm thinking a drop down list showing
my "Name" field would be what I want. (Or should I just feed the form
the key?)
I've tried using a drop down list, but it doesn't seem to work. I'm
assuming it's an event procedure like this:
Private Sub lbxDestID_LostFocus()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[DestID] = " & Str(Me![lbxDestID])
Me.Bookmark = rs.Bookmark
End Sub
but I don't know where to place it. On the form? Or a control? On
Got Focus? Lost Focus? Other?
I haven't been able to find any examples to try and copy, so I'm
really "flying blind" here.
Any help is appreciated.
Thanks in advance.
Tom