query insert data problem

G

Guest

i mail two days about a problem that i had with three fields in the same
query line
my table as the fields: date, product code, quantity
my query as you help me is
date, product code, quantity(date-1),quantity(date),quantity(date+1)
for this i have done 3 query with the diferent date catches.
now the problems are:
1- can't insert data in them.
2- if their is no data on "date+1" i have 0 results.

thank u
if you think in a better way to do this, im open to new ideas
 
J

Jeff Boyce

Roy

First, consider changing the name of your field you've called "date". This
is a "reserved word" in Access, and you will only confuse Access and
yourself by naming a field with the same word.

I didn't see your earlier email, so I don't understand -- if you are trying
to insert data, what data are you trying to insert, where, and why?
 
G

Guest

my table as the fields: Main date, product code, quantity
i want a query with the result to be:
Main date, product code, quantity(date-1),quantity(date),quantity(date+1) in
the same line.
and i wont to be able to change the "quantity" of the columns +
i wont the query to work if 1 of the days is empty.

thank you
 
J

Jeff Boyce

Roy

I'm still not following your question too well.

Why do you want/need to change the quantity -- how does this help you
satisfy a business need?

If your query is reporting what is actually recorded for a given date, for
the day before, and the day after, why would you need to change the quantity
at all?

Please provide a copy of the SQL statement(s) you are using.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query to display highest totals 1
Query design 1
query error 12
query option 1
Return minimum value across fields 3
query to append query 1
upc and pos 3
Building expression problem using Access Query. 4

Top