update record after query

  • Thread starter Thread starter Gavler
  • Start date Start date
G

Gavler

I have a database for clients that recieve foodbags weekly. I conduct a query
based on social security number to see if they have a record. If they do, i
only want to change the date to relect the current date in the record and
then save the new record without losing the old records, or just add the new
date and have all the other information in the record remain the same. Any
help would be appricated, because now we are inputting all the same
information into the database everytime the client comes in to get food, but
the only new information is the date.
 
On Thu, 28 Feb 2008 04:45:01 -0800, Gavler

Create a form based on your data.
Go to the SSN field and hit Ctrl+F to search.
If the record is found, change the date field manually or with a
button (Me.txtSomeDateField.Value = Date() )

-Tom.
 
Thanks Tom,
That did work, but it failed to save the old record in the table . It saved
the new date in the old record, I am trying to save the old and new rocord
with the new date found with Ctrl+F
 
On Fri, 29 Feb 2008 02:04:00 -0800, Gavler

You wrote:
"...or just add the new date and have all the other information in
the record remain the same..." which I took to mean 1 record.
If you want multiple records, I don't think the approach of making an
exact copy of a record and changing 1 field is appropriate db design.
Rather you may want a 1:M table with
ClientID, DateServed
You would then have a form with client information and a subform bound
to the new table for the dates.

-Tom.
 

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

Back
Top