• Answers
  • Web

In ms access, I would like to call a query that ...

in ms access, I would like to call a query that returns a constant list, assigned to each ID in a table I have, unless another record exists, in which case I would like it to replace a certain record...

Is there any way to do that?


Share Send to a friend Watch Report
 
 

2 Posted Answers
Order by

 
You have deleted this post. It will not be visible to other users. Restore this post
NA5
(deleted account)

Typically one creates a separate table with a list of constants. These can be included in your query or report as you wish. But I'm a bit confused by what you mean as a "constant list" that is assigned to each record but then, "if another record exists" you want to replace some record.

Are you saying that you want to update the constant list based on information in a new record? 

Are you saying that each record has it's own set of constants, but that the constants may change when a new record comes in? This would be the case where a person's address remains the same over an extended time, and multiple records, but is subject to being changed when a new one comes in.

In the last case you may want to extract a separate table of "constants" and check that with each new data set. When there is a change the the separate constants table would need to be updated.  You do need to have a unique identifier for each individual, or entity, so that the constants table is being updated for that individual or entity.  I have an application like that here where I'm tracking employees and maintaining a table of their location in our organization togather with their email information. I use it for reference when we receive a record missing information but update it when a new record comes in as occasional moves occur from one job location to another.

Does any of this address your question?

Moshe

Washington, DC

Posted 2007-01-31T14:50:59Z
NA5 was invited by Yedda to answer this question.

 
10 helpful answers

What I'm trying to build is a kind of employe schedule.

Each employee fills in the time when he's available and the time he's not (each hour of the week)

now, the thing is that there are special weeks when an employee's availability changes.

I would like to allow him to change a day's availability without changing this constant schedule of his.

Am I clearer now?

How would you do that?

Posted 2007-02-12T16:22:36Z

Sign in to participate

Got an answer for scf84? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

MS Access user permissions managment

In MS Access, I would like to create a list of users with properties I need, such as username, name, password etc. As far as I ...
Submitted by scf84   3 years ago.
  • viewed 2329 times
Last answer posted 1 year ago by somala


Q:

Arrays in MS Access

I would like to create an array of variables in MS Access (I use the 2003 version). Is it possible to create a random access array ...
Submitted by scf84   3 years ago.
  • viewed 3698 times
Last answer posted 3 years ago by scf84


Q:

MS Access Database without SQL?

Can MS Access be used to build a decent database without using the SQL functions? The IT department won't give us engineers SQL ...
Submitted by Lekki   3 years ago.
  • viewed 942 times
Last answer posted 3 years ago by demagogue



» More...

Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License