E
ElizCat
I have a form with two combo boxes, Style and BlendID. For each new record,
if the user selects an existing Style, I want to display the corresponding
BlendID. If a new Style is typed in, I want the user to be able to select an
existing BlendID or enter a new one. Complicating matters, when a BlendID is
selected, I want to display a pop-up form showing Blend details
(BlendID-AfterUpdate event)
I'm having a hard time gettng the Style-BlendID link to work without
scrambling the link between my BlendID combo and the popup form. I've tried
a filtered query to limit the values available to the BlendID combo, but I
had some indecipherable problems (no errors, just not working). So, I
thought maybe working with RecordsetClone would be the way to go, but I'm
stuck on how to get my second combo box to display the recordset retreived
for the first. Any suggestions?
Thanks in advance - ElizCat
Here's what I've got:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[StyleNumber] = " & str(Nz(Me![BlendID], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
'do something here to pass [BlendID] to the BlendID combo box
Call BlendID_AfterUpdate
if the user selects an existing Style, I want to display the corresponding
BlendID. If a new Style is typed in, I want the user to be able to select an
existing BlendID or enter a new one. Complicating matters, when a BlendID is
selected, I want to display a pop-up form showing Blend details
(BlendID-AfterUpdate event)
I'm having a hard time gettng the Style-BlendID link to work without
scrambling the link between my BlendID combo and the popup form. I've tried
a filtered query to limit the values available to the BlendID combo, but I
had some indecipherable problems (no errors, just not working). So, I
thought maybe working with RecordsetClone would be the way to go, but I'm
stuck on how to get my second combo box to display the recordset retreived
for the first. Any suggestions?
Thanks in advance - ElizCat
Here's what I've got:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[StyleNumber] = " & str(Nz(Me![BlendID], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
'do something here to pass [BlendID] to the BlendID combo box
Call BlendID_AfterUpdate