Hello:
I have a database I've been creating that to store information about members of a job club. I'm not a programmer (I'm an attorney so this is pretty far outside my comfort zone), but I've created several databases and learned some rudimentary VBA to help with the databases. Here are all the table names and what they store:
tblMembers - Member info
tblSessions- Dates they've attended
tblEmployer - Employer info if member has been hired
tblMemberEmployer - Junction table to relate Members and Employers
tblAttendees - Junction table to relate Sessions and Members(Employer if applicable)
The problem I'm having is that, when I use tblMemberEmployer, I cannot figure out how I tell Access that I want to associate a particular member with a particular employer, if that member gets employed. Basically, on frmMembers, if the Member has been hired, I have a check box (ckHired) that, once checked, a button appears to open frmEmployer to enter the Employer information. However, I have no idea how to tag that Employer information to the particular member.
The 2nd problem I'm having is with a query for a listbox (lstMemberSession). The query (qryMemberSession) is meant to just query the member's name and date's he's attended and display that in the listbox. I wanted the query to reference txtLastName of frmMembers (where lstMemberSession is located) and base the query on the member's last name. I realize that it's probably better to have it reference pkMemberID to avoid returning results of people who have the same last name, but alas, I'm not sure how to do that. I'd like lstMemberSession to update based on whatever record is displayed on frmMembers. Right now, I can't get the query to display any results, even if I leave criteria blank.
I believe that about sums up my current issues with this database. If anyone could give me some insight as to what exactly is the problem with these two issues, it'd be greatly appreciated. Thanks in advance for the help.
Job Club Rev3.zip