Hi Everyone. I have a form the has these fields:
PartNum
Tool-code
Rev-code
PcsPerCtn
I want to use a combo box to search for a specific record. In the combo box, as of now, there are three columns. PartNum, Tool-code, and Rev-code. This is because only through a combination of the three of them can you be sure you have the right record. For example, two records may have the same partNum and tool-code but have a different rev-code. I am trying to use this code in the after update of the combo box:
I'm not getting an error but the fields are not updating. Is this because I'm just looking at the part number and there can be several records with the same part number?? Will I have to break this into 3 combo boxes? Can anyone point me in the right direction?
Thanks in Advance,
Jason
PartNum
Tool-code
Rev-code
PcsPerCtn
I want to use a combo box to search for a specific record. In the combo box, as of now, there are three columns. PartNum, Tool-code, and Rev-code. This is because only through a combination of the three of them can you be sure you have the right record. For example, two records may have the same partNum and tool-code but have a different rev-code. I am trying to use this code in the after update of the combo box:
Code:
Dim Rec As Recordset
Set Rec = Me.RecordsetClone
Rec.FindFirst "[PartNum] =" & vbCrLf _
& Me![cboPartNum] & vbCrLf
Me.Bookmark = Rec.Bookmark
I'm not getting an error but the fields are not updating. Is this because I'm just looking at the part number and there can be several records with the same part number?? Will I have to break this into 3 combo boxes? Can anyone point me in the right direction?
Thanks in Advance,
Jason