Would like some opinions on the best way to go about creating this form.
I have 4 tables
tblCables
cableid
partnumber
supplierid
other detail fields
SideA
cableid
conn1A through conn15A
Side B
cableid
conn1B through conn15B (same connector choices as Side A)
tblSupplier
supplierid
supplier
My form has a partnumber combo box (which I have filled from tblCables)that, when a p/n is selected, all of the fields pertaining to that p/n are automatically filled in. This includes all 15 "conn" fields from both SideA and Side B and up to six suppliers.
This form will be used to view as well as create new and update records so I have made all of my fields combo boxes and used the underlying tables to fill the data.
Right now I have my form based on a query using all 4 tables left joined to cableid in tblCables.
I will then use VBA to auto fill all of the fields. Since I can't get this to work, my questions are:
1) should I be filling the part number cbo with a SELECT statement from my query or from tblCables?
2) Are my joins correct? (left join on cableid in tblCables)
3) Should I even be using the same form for view and updating/adding?
4) In the After Update of the partnumber cbo, I was trying to use
i.e. Me.conn1A = Me.partnumber.Column(11) The number (starting with 0) of the conn1A field in my query.
Is this the best way to to this? I will need to do this 36 times to fill all of my cbo's.
Not looking for someone to do all of this for me, just wanted to see if I was heading in the right direction or if I should step back and reevaluate my plan.
Thanks,
Toni
I have 4 tables
tblCables
cableid
partnumber
supplierid
other detail fields
SideA
cableid
conn1A through conn15A
Side B
cableid
conn1B through conn15B (same connector choices as Side A)
tblSupplier
supplierid
supplier
My form has a partnumber combo box (which I have filled from tblCables)that, when a p/n is selected, all of the fields pertaining to that p/n are automatically filled in. This includes all 15 "conn" fields from both SideA and Side B and up to six suppliers.
This form will be used to view as well as create new and update records so I have made all of my fields combo boxes and used the underlying tables to fill the data.
Right now I have my form based on a query using all 4 tables left joined to cableid in tblCables.
I will then use VBA to auto fill all of the fields. Since I can't get this to work, my questions are:
1) should I be filling the part number cbo with a SELECT statement from my query or from tblCables?
2) Are my joins correct? (left join on cableid in tblCables)
3) Should I even be using the same form for view and updating/adding?
4) In the After Update of the partnumber cbo, I was trying to use
i.e. Me.conn1A = Me.partnumber.Column(11) The number (starting with 0) of the conn1A field in my query.
Is this the best way to to this? I will need to do this 36 times to fill all of my cbo's.
Not looking for someone to do all of this for me, just wanted to see if I was heading in the right direction or if I should step back and reevaluate my plan.
Thanks,
Toni