What I'm trying to do seems fairly simple, but I'm having trouble making it work.
I have a form that uses a combo box to search for a specific record, and then pulls up said record. In this case, the record comes from a query which has the fields MemberName, MemberID, Swipes, and Email. The Combo box searches for members by typing up the member name, then the form brings up the data of the member you just looked up.
What I'm trying to do, is that on button click, I need to store the MemberName and MemberID onto a new table AttendanceT. I've tried several different methods and what ends up happening is I always end up storing the first record of the query, and not what the current record (that you searched for using the combo box, and whose information are displayed on the form currently).
I have tried Dlookup as well as setting variables to save fields from specific variables such as namestr = rs!MemberName
Any help would be appreciated, let me know if you need more information.
Thanks!
Ringo
Here's what the form looks like, the MemberID information isn't displayed, but is part of the query that the form pulls data from.
![]()