Greetings forum,
I'm pretty new to access and VB and am having some trouble figuring out how to fix a coding problem.
I have 2 tables, tblGroup and tblBanquet. Additionally I have 2 forms, frmGroup and frmBanquet, both based on queries of the corresponding tables.
One-to-Many relationship from tblGroup-Group Name to tblBanquet-Group Name
Primary Keys:
tblGroup -
Group Name
tblBanquet -
Group Name
Date of Function
Arrival Time
AmPm
The frmGroup works well, its pretty straight forward.
However, I have a cmbBox (cmbGroupName) in the form header on frmBanquet used to pick group names (used as customerID) and place that value into txtGroupName (bound to Group Name in qryBanquet -> tblBanquet). Additionally, in the same header I have a cmbBox (cmbBanquet) used to pull up existing records from qryBanquet.
Either of these controls work fine by themselves. However, if I would use cmbGroupName to pick a group name, and then use cmbBanquet to view a current record without filling pri key requirments (ie not creating a new record) the operation fails. This is an action I forsee users atempting on a regular basis.
I dont know how to fix this problem, and appreciate any help given. I attached my problem children in 97 format.
thanx in advance
dat_guy
I'm pretty new to access and VB and am having some trouble figuring out how to fix a coding problem.
I have 2 tables, tblGroup and tblBanquet. Additionally I have 2 forms, frmGroup and frmBanquet, both based on queries of the corresponding tables.
One-to-Many relationship from tblGroup-Group Name to tblBanquet-Group Name
Primary Keys:
tblGroup -
Group Name
tblBanquet -
Group Name
Date of Function
Arrival Time
AmPm
The frmGroup works well, its pretty straight forward.
However, I have a cmbBox (cmbGroupName) in the form header on frmBanquet used to pick group names (used as customerID) and place that value into txtGroupName (bound to Group Name in qryBanquet -> tblBanquet). Additionally, in the same header I have a cmbBox (cmbBanquet) used to pull up existing records from qryBanquet.
Either of these controls work fine by themselves. However, if I would use cmbGroupName to pick a group name, and then use cmbBanquet to view a current record without filling pri key requirments (ie not creating a new record) the operation fails. This is an action I forsee users atempting on a regular basis.
I dont know how to fix this problem, and appreciate any help given. I attached my problem children in 97 format.
thanx in advance
dat_guy