karmacable
Registered User.
- Local time
- Today, 15:08
- Joined
- Sep 13, 2011
- Messages
- 32
Hi Guys,
New to the forum and semi-new to Access (programmed intermediate level a decade ago). So my database is setup using lookup columns extensively, which as I've read in many different posts in this and other forums is genuinely looked down upon (I too have come across the '8 evils of lookup columns' list many people refer to).
I will in the near future rebuild my database to try and eliminate lookup columns, but for the time being I was wondering if there was a semi-painless way to program / figure out an answer to my problem. Here's the basic scenario as detailed as I can describe, two tables and one form;
tblCamera
CameraID-------CameraName -------CameraPrice
1 --------------Sony ---------------$10
2 --------------Panasonic -----------$12
3 --------------Nikon ---------------$14
tblProject
ProjectID --------ProjectName -------1stCameraName--- 2ndCameraname
1 ----------------Outdoor---------- (awaiting 1stcbo) ---(waiting for 2ndcbo)
2 ----------------Indoor------------ (awaiting 1stcbo) ---(waiting for 2ndcbo)
3 ----------------Everywhere --------(awaiting 1stcbo)-- (waiting for 2ndcbo)
frmProject (contains Project Name and two choices of Camera)
txtProject --> (User inputs name, essentially the unique identifier per record)
cbo1stCamera --> (User selects 1st Camera)
cbo2ndCamera --> (User selects 2nd Camera)
txtTotalPrice --> (Sum price of above selections)
In tblProject you can see that I've created two textboxes to hold the camera selections from the user. Right now my tables are not connected in any way, but my form's working great in doing a lookup for the individual Camera Names (via a VBA column lookup in the AfterUpdate properties for each). If i were to connect the tables, then whatever I choose in one combo box is the same in the other, hence why I cannot successfully join my tables.
So although the form properly displays and records the camera name selection for each record, in the data view only the CameraID shows for the 1st and 2ndCameraName fields. So when I attempt to run a report showing which cameras were chosen, only the ID's show up.
So although my above example is for a tiny set of info (my actual database form has more than 40 combo box selections for Camera possibilities), is there a generally painless at this point to simply translate / lookup the corresponding Camera names recorded in the
Camera Fields and have that show up in my report?
I realize this question might be better suited for the 'Forms' instead of 'Reports' forum category, and the moderator should feel free to move it there if he/she deems that to be the case.
Thanks for any advice, and feel free to go beyond my question scope and propose a solution for not working with lookups!
New to the forum and semi-new to Access (programmed intermediate level a decade ago). So my database is setup using lookup columns extensively, which as I've read in many different posts in this and other forums is genuinely looked down upon (I too have come across the '8 evils of lookup columns' list many people refer to).
I will in the near future rebuild my database to try and eliminate lookup columns, but for the time being I was wondering if there was a semi-painless way to program / figure out an answer to my problem. Here's the basic scenario as detailed as I can describe, two tables and one form;
tblCamera
CameraID-------CameraName -------CameraPrice
1 --------------Sony ---------------$10
2 --------------Panasonic -----------$12
3 --------------Nikon ---------------$14
tblProject
ProjectID --------ProjectName -------1stCameraName--- 2ndCameraname
1 ----------------Outdoor---------- (awaiting 1stcbo) ---(waiting for 2ndcbo)
2 ----------------Indoor------------ (awaiting 1stcbo) ---(waiting for 2ndcbo)
3 ----------------Everywhere --------(awaiting 1stcbo)-- (waiting for 2ndcbo)
frmProject (contains Project Name and two choices of Camera)
txtProject --> (User inputs name, essentially the unique identifier per record)
cbo1stCamera --> (User selects 1st Camera)
cbo2ndCamera --> (User selects 2nd Camera)
txtTotalPrice --> (Sum price of above selections)
In tblProject you can see that I've created two textboxes to hold the camera selections from the user. Right now my tables are not connected in any way, but my form's working great in doing a lookup for the individual Camera Names (via a VBA column lookup in the AfterUpdate properties for each). If i were to connect the tables, then whatever I choose in one combo box is the same in the other, hence why I cannot successfully join my tables.
So although the form properly displays and records the camera name selection for each record, in the data view only the CameraID shows for the 1st and 2ndCameraName fields. So when I attempt to run a report showing which cameras were chosen, only the ID's show up.
So although my above example is for a tiny set of info (my actual database form has more than 40 combo box selections for Camera possibilities), is there a generally painless at this point to simply translate / lookup the corresponding Camera names recorded in the
Camera Fields and have that show up in my report?
I realize this question might be better suited for the 'Forms' instead of 'Reports' forum category, and the moderator should feel free to move it there if he/she deems that to be the case.
Thanks for any advice, and feel free to go beyond my question scope and propose a solution for not working with lookups!