E
Edward
Hi everybody,
I have a form that has a combobox with three columns, staff ID( hidden ),
last name, first name . and there are three checkboxes on the form attend 1.
attend 2, attend 3.
I want to write a vba code it combobox change event that when we select a
staff , it will check or uncheck those three checkboxes based in data in each
staff's record.
I have so far
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("SELECT * FROM [ession-staff-schedule] WHERE
Staff_ID='" & [cboFirstNameRes].Column(0) & "';")
chkIntro.Value=rst![Attend 1]
but i get mismatch error on the Set rst line any thoughts?
Thanks
I have a form that has a combobox with three columns, staff ID( hidden ),
last name, first name . and there are three checkboxes on the form attend 1.
attend 2, attend 3.
I want to write a vba code it combobox change event that when we select a
staff , it will check or uncheck those three checkboxes based in data in each
staff's record.
I have so far
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("SELECT * FROM [ession-staff-schedule] WHERE
Staff_ID='" & [cboFirstNameRes].Column(0) & "';")
chkIntro.Value=rst![Attend 1]
but i get mismatch error on the Set rst line any thoughts?
Thanks