Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Query design in Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-04, 05:59
lamouche lamouche is offline
Registered User
 
Join Date: Oct 2004
Posts: 2
Query design in Access

Problem 1:
I am new at this,
created a database in access to retrieve certain records. the problem i am facing is that i want to retrieve some records in a certain criteria but not all the records. Let me explain. I have an inventory with different columns for qty, type, etc... in the location column, i would like to retrieve some records in a certain location (like bin 01 row 05 and up, but not rows 04 to 01).
Is there any way i can do this?

Problem 2:
created a union query to combine 3 different tables together. this combines all data in location "car". the problem is that when i run the query, made macro to output this data to excel, which in turn is formatted via macro in excel to have document in format we want. we then add a location in the last column as to where we want the "car" to be emptied.
the problem is that when we run the query again, it gathers the information from a linked table in the inventory system which have no locations. therefore, we lose all information entered in excel.
Tried to create a .txt file to link to database, but when we run the query, it overwrites the .txt file (with no location). Tried an update query to update a made up table but doesn't work either.

Can anyone help me on any of these issues? thanks
__________________
Marcel J Parent
Reply With Quote
  #2 (permalink)  
Old 10-05-04, 20:36
rokslide rokslide is offline
Coffee Minion
 
Join Date: Nov 2003
Location: Sydney
Posts: 1,515
Answer 1. Select qty, type from inventory where bin='01' and row >= '05'

You will need to do a conversion on row to turn it into a numeric value but as you haven't specified the database you are using I can't tell you how to do that.


Answer 2. What?? I'm a bit confused about what you want to happen on the rerun. If you have no location data what do you want in the spreadsheet??
Reply With Quote
Reply


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

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