G
Guest
I have created a form and subform with the wizard. After creating, I created
a combobox in my subform with the wizard. This combo box lists all products
available. My goal is to use the main form "Quote" to create quotes for
variuos customers. The subform is where all products and the statistics for
those products will be chosen. I have the subform in datasheet view.
The issue is with the combobox. When I click on it, all products are
listed, however when I choose one I get runtime error 3021. When I click
Debug, the following line is in yellow:
Me.Bookmark = rs.Bookmark
1. I have no idea what this line means.
2. I think I may need to edit my record source for some part of the form or
subform, but I do not know where or how.
3. This is my first subform with a combo box.
4. I have never had any training in coding, I have gotten this far with
books and this forum.
Any suggestions/detailed information would be appreciated. Please give me
step-by-step. Still pretty new with the lingo.
I love reading all of the posts with solutions, they have been most helpful
to me. I hope someone out there is able to help a newbie like me!
Thanks in advance!
Private Sub Combo26_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[UPC] = '" & Me![Combo26] & "'"
Me.Bookmark = rs.Bookmark
End Sub
a combobox in my subform with the wizard. This combo box lists all products
available. My goal is to use the main form "Quote" to create quotes for
variuos customers. The subform is where all products and the statistics for
those products will be chosen. I have the subform in datasheet view.
The issue is with the combobox. When I click on it, all products are
listed, however when I choose one I get runtime error 3021. When I click
Debug, the following line is in yellow:
Me.Bookmark = rs.Bookmark
1. I have no idea what this line means.
2. I think I may need to edit my record source for some part of the form or
subform, but I do not know where or how.
3. This is my first subform with a combo box.
4. I have never had any training in coding, I have gotten this far with
books and this forum.
Any suggestions/detailed information would be appreciated. Please give me
step-by-step. Still pretty new with the lingo.
I love reading all of the posts with solutions, they have been most helpful
to me. I hope someone out there is able to help a newbie like me!
Thanks in advance!
Private Sub Combo26_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[UPC] = '" & Me![Combo26] & "'"
Me.Bookmark = rs.Bookmark
End Sub