Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Tables

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-20-2006, 08:15 AM
SABPC
Guest
 
Posts: n/a
Newbie question, basic table automating entries

Hi all, new member with a newbie question. I have just started working with Access, so pardon if this question is unclear or pitifully basic. We have a basic database comprised of client names, amounts paid to-date and balance due. It also has a field named date last paid, so here is the question. When you enter or change the amount in paid to-date, can you automatically have the date of the change (ie. Todays Date) entered in the "Date last paid" field.

Thanks all for the help in advance.

Chris
Reply With Quote
Sponsored Links
  #2  
Old 07-20-2006, 09:00 AM
jaydwest jaydwest is offline
JayW
 
Join Date: Apr 2003
Location: Boulder, CO
Posts: 334
jaydwest
When entering data direcdtly into a table there is no way to automatically trigger a macro or procedure to update the date. You could display the table in a form and then create a procedure on the Form_BeforeUpdate event.

Another way to accomplish this that may be easier for you is to create a macro the is initiated from a keystroke. Then have the user press something line {control} d to update the date. If you are not familiar with macros, this may take a little research.

Good luck
__________________
DeepPowdah
Reply With Quote
  #3  
Old 07-20-2006, 09:25 AM
edtab edtab is offline
Registered User
 
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 243
edtab
You could update any field in any table in your database
via an action query (specifically an update query).
You usually create one of these action queries via
the query design grid.

Another way is by a Docmd.RunSql statement where you
specify in your vb script the required sql statement to
update your table.

This is just a very shallow explanation. You'll need to dig
deeper into these two topics.
Reply With Quote
  #4  
Old 07-20-2006, 12:06 PM
SABPC
Guest
 
Posts: n/a
The form route will most likely be the way to go, eventually the goal is to have all data entered / updated via a form. Any suggestions on creating a procedure on the Form_BeforeUpdate event, as jaydwest suggested?

Thanks,
Chris
Reply With Quote
  #5  
Old 07-20-2006, 12:10 PM
KeithG's Avatar
KeithG KeithG is offline
AWF VIP
 
Join Date: Mar 2006
Location: Illinois
Posts: 2,592
KeithG will become famous soon enoughKeithG will become famous soon enough
You should actually create a seperate table for the date paid. Then you would be able to keep track of every payment your client has made. It sounds like the designer of this database did not normalize it.
Reply With Quote
  #6  
Old 07-21-2006, 08:55 AM
SABPC
Guest
 
Posts: n/a
This database did not have a designer, it is vast amounts of data culled from a HUGE Excell workbook. So any suggestions at all would be apreciated. Here are a few specifics:

It is an attorney's office, the database needs to show the retainer amount, the amount paid to-date and the balance due. I would like to have the database do the calculations automatically (retainer-paid=balance due etc.)

I would also love to figure out a way for it automatically put todays date in a "Date last Paid" field when an amount is entered in the "Paid to-date" field.

Then I would like for it to add 30 days to "Date last paid" and place that value in a "Reminder date" field.

Now, a Disclaimer: I am not in any way, shape or form familiar with programming or Visual Basic, beyond the VERY basics. I am the firms computer tech (ie. hardware) and this kinda got dumped in my lap.

So, your help is GREATLY appreciated.

Chris
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass data from one table to the next? suzannemonette General 5 08-17-2006 07:31 AM
Newbie normalization question (or, "My brain hurts") davidfox Tables 2 08-26-2005 01:46 PM
Newbie question: linking fields in Access kemperr Tables 6 06-16-2003 07:25 PM
newbie. deleting from table after query potbelly Queries 1 04-19-2002 11:13 AM
Complex table relationship question fcvdb Forms 0 06-02-2000 10:38 AM


All times are GMT -8. The time now is 09:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World