If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > seperating 2 items from a lookup to create running total in query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-17-10, 07:45
Glenthorne Glenthorne is offline
Registered User
 
Join Date: Sep 2010
Posts: 14
seperating 2 items from a lookup to create running total in query

I have a field called Extras in an order form - I have used a lookupwizard with two columns to store the data - for example - Item, Cost fields- teddy, £3.34;balloon,£4.50. When I create a query to work out invoice - I want to be able to seperate them and display them or as many that have been selected. I have tried using Expression Builder but no joy - using Access 2010 - thanks in advance
Reply With Quote
  #2 (permalink)  
Old 09-17-10, 13:21
jmahaffie jmahaffie is offline
Registered User
 
Join Date: Apr 2004
Location: Kingsland, Georgia
Posts: 231
I'm not sure what a lookupwizard is - i'm thinking along the lines of a listbox? If you're needing a routine to display all of those, you could approach it like this:
Code:
Dim varItem as Variant

For Each varItem In lstWhatever.ItemsSelected
   'Do something here with lstWhtever.Column(0) and lstWhtever.Column(1)
Next
Reply With Quote
Reply

Tags
expression, form, lookup, query

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On