J
Jinsem
So I was told how to do what I wanted to know, and well I
almost have it working. My utter lack of knowing what
goes where is playing against me I think. Here is my code
that was told to me, filled in with what I beleive to be
the correct data :
This goes in the text box (source) that will populate off
of a combo box that has data entered into it.
Select [tblMaster_Parts].Item_Desc, [tblMaster_Parts].
[Part_num]
From [tblMaster_Parts]
Now here's the code I was told to use in the combo box to
make the text box populate:
Dim rs As Object
Set rs = Me.RecordsetClone
rs.FindFirst "[tblMaster_Parts].Item_Desc = " & Str(Nz
(Me![Item_Desc_WorkerForm], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
I entered it straight into the "after updated" line, but
then I got a long macro error saying it didn't have a
macro "me" saved, or entered. So I then addded it as
code, and it doesn't like the third line. I'm hoping I
have the right data, but it's apparent to me from
the "#name" error message in my text box I don't.
Anyone mind attempting to help me ? I figure the only way
to learn is to just keep asking and I will pick it up...
Ahh, before I go... I know my naming is a bit weired, but
I'm trying to learn "[Item_Desc_WorkerForm]" is the name
of the text box I want populated, even though it looks
like a form name.
Jinsem
Who now starts tables with "tbl" and forms with "frm"
almost have it working. My utter lack of knowing what
goes where is playing against me I think. Here is my code
that was told to me, filled in with what I beleive to be
the correct data :
This goes in the text box (source) that will populate off
of a combo box that has data entered into it.
Select [tblMaster_Parts].Item_Desc, [tblMaster_Parts].
[Part_num]
From [tblMaster_Parts]
Now here's the code I was told to use in the combo box to
make the text box populate:
Dim rs As Object
Set rs = Me.RecordsetClone
rs.FindFirst "[tblMaster_Parts].Item_Desc = " & Str(Nz
(Me![Item_Desc_WorkerForm], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
I entered it straight into the "after updated" line, but
then I got a long macro error saying it didn't have a
macro "me" saved, or entered. So I then addded it as
code, and it doesn't like the third line. I'm hoping I
have the right data, but it's apparent to me from
the "#name" error message in my text box I don't.
Anyone mind attempting to help me ? I figure the only way
to learn is to just keep asking and I will pick it up...
Ahh, before I go... I know my naming is a bit weired, but
I'm trying to learn "[Item_Desc_WorkerForm]" is the name
of the text box I want populated, even though it looks
like a form name.
Jinsem
Who now starts tables with "tbl" and forms with "frm"