Normal Topic Need  help to add Profils in a form or subform (Read 3084 times)
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Need  help to add Profils in a form or subform
Jan 9th, 2005 at 12:35pm
Print Post Print Post  
Please share the technique you add ready Customer profil (like 10, 12 or 21 Items) in the form at ones with Xlookups from Customer-Profil-Database. The Profil  must be modifiable. So i kann accept  all the usual profil Items or delete some of them (because nicht always all the Profil-Items are ordered)

Any advice is greatly appreciated. Roll Eyes

Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Need  help to add Profils in a form or subform
Reply #1 - Jan 9th, 2005 at 2:18pm
Print Post Print Post  
Quote:
Please share the technique you add ready Customer profil (like 10, 12 or 21 Items) in the form at ones with Xlookups from Customer-Profil-Database. The Profil  must be modifiable. So i kann accept  all the usual profil Items or delete some of them (because nicht always all the Profil-Items are ordered)

Any advice is greatly appreciated. Roll Eyes

Dr. Belhareth



If I'm reading this correctly...

You have an order form with a line items subform. You want to enter a customer number and have the subform automatically prefilled with the set of items this cutomer normally orders.

Is this correct?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Need  help to add Profils in a form or subform
Reply #2 - Jan 9th, 2005 at 7:50pm
Print Post Print Post  
Hello!
That is correct.

Thanks.
Dr. Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Need  help to add Profils in a form or subform
Reply #3 - Jan 10th, 2005 at 1:15pm
Print Post Print Post  
Assuming that you have the following databases:
Customers
Items
Orders

I'd put a Profile keyword field in Customers where you store a semi-colon separated list of the item numbers for each Customer.

In Orders, once you select a Customer, use XLookup to get the Profile value for that Customer. Now you have a StringArray.

Write a loop that uses AccessStringArray to get each item in turn. For each item, XLookup the name, price, etc. for that item. Use @FormNewRecord to create a line item subrecord for each item.

You can then delete those subrecords you don't want. Alternately, you can use @AskUser to confirm each item before adding it. Or, you can set it up where you can select a particular item to add from the list or ALL. Once you have the list of items, it really becomes a question of what exactly you want to do with it.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Need  help to add Profils in a form or subform
Reply #4 - Jan 16th, 2005 at 2:01pm
Print Post Print Post  
Hi, Cheesy
..it works and i am still learning.
Thanks for the help!

Dr.Belhareth
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged