My Assistant
![]() ![]() |
|
|
Jul 24 2009, 10:34 AM
Post
#1
|
|
|
UtterAccess Addict Posts: 204 From: Maryland |
I am trying to build a form which be able to develop and save select queries for future use. also allow a customization of these select statements. the best way I can explain this is to use a hypothetical case.
If I had a database of 80 customers and I wanted to be able to pick and choose specific customers to send infomation to, but instead of recreating the select case every time I wanted to save it into a query. Is there a way to create a form using something like a check box that would allow me to select customers and then save that list for reuse. I just dont know where to start. thanks guys Cory |
|
|
|
Jul 26 2009, 06:23 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 5,112 From: Dunbar, WV |
Yes. You could have a main form bound to a table like
tblSelectcases id selectcaseno name1 and a datasheet subform on that bound to tblSelectcasesdetails id selectcasesid (foreign key to tblSelectcases) customerid (foreign key to tblCustomers) User can put in as many customers as he wants. For your report join the tblMaintable.customerid to tblSelectcasesdetails.customerid, join tblSelectcases to tblSelectcasesdetails and select on selectcaseno. No customerid in tblSelectcasesdetails, no customer on the report. It's possible you don't really need this. Can you give an example? Robert |
|
|
|
Jul 27 2009, 08:30 AM
Post
#3
|
|
|
UtterAccess Addict Posts: 204 From: Maryland |
The actual usage of this is for an environmental chemistry database. I have an analysis with which I analyze for 80 volatile organic compounds (VOC's) every time. I always want to retain all the data from each analysis but often my customers provide a specific list of Chemicals which are the only compounds they want to see on their report. Different projects from the same client may require different lists as well as client to client differences. Very often i would be able to reuse these lists but I will need an easy way to customize the so i can add and subtract
as a very short example total list includes 5 chemicals Acetone, Benzene, Toluene, Xylene, Ethanol Client 1 might only want to see Benzene, Toluene, Xylene for one project but see all of them for another project. If you have a better idea on how to accomplish this I am all ears. I am not an extremely good Access developer, I think I have the patience and stubborness to try and figure it out thanks for the Help Robert I appreciate all of your advice Cory |
|
|
|
Jul 27 2009, 08:50 AM
Post
#4
|
|
|
Retired Moderator Posts: 10,493 From: Lexington/Louisville KY USA |
Jerry Dennison has an example in the Code Archive, here, that does exactly what you want. There are others there as well. Using the Advanced Search and 'multi select' for the criteria on the Code Archive should get you plenty of options.
|
|
|
|
Jul 27 2009, 12:43 PM
Post
#5
|
|
|
UtterAccess VIP Posts: 5,112 From: Dunbar, WV |
To save it, you will need to use tables. Chemical id will also have to be added to the table.
|
|
|
|
Jul 28 2009, 01:53 PM
Post
#6
|
|
|
UtterAccess Addict Posts: 204 From: Maryland |
Robert,
can you look over my relationships view and confirm I am doing this correctly Cory
Attached File(s)
|
|
|
|
Jul 28 2009, 02:32 PM
Post
#7
|
|
|
UtterAccess VIP Posts: 5,112 From: Dunbar, WV |
Yes, it looks good.
|
|
|
|
Jul 28 2009, 03:34 PM
Post
#8
|
|
|
UtterAccess Addict Posts: 204 From: Maryland |
I am making alot of headway but I am out of time for today, thanks for the help, and look for some followups tomorrow
|
|
|
|
Jul 28 2009, 03:36 PM
Post
#9
|
|
|
UtterAccess VIP Posts: 5,112 From: Dunbar, WV |
Okay.
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th May 2013 - 04:01 AM |