A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Prefill a field



 
 
Thread Tools Display Modes
  #1  
Old October 26th, 2008, 04:06 PM posted to microsoft.public.access.tablesdbdesign
katanagirl
external usenet poster
 
Posts: 1
Default Prefill a field

I'm not sure how to word the question other than to give an example of the
the issue I'm having. I have a subform based on table with beginning
odometer reading and ending odometer reading. When I start a new record, I
would like the ending odometer reading from the previous record to 'prefill'
rather than having to re-type the same information. Perhaps I totally
designed the form incorrectly, but the only information I have to input
includes beginning and ending info.

Anyone have any suggestions?
  #2  
Old October 26th, 2008, 04:12 PM posted to microsoft.public.access.tablesdbdesign
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Prefill a field

katanagirl wrote:
I'm not sure how to word the question other than to give an example
of the the issue I'm having. I have a subform based on table with
beginning odometer reading and ending odometer reading. When I start
a new record, I would like the ending odometer reading from the
previous record to 'prefill' rather than having to re-type the same
information. Perhaps I totally designed the form incorrectly, but
the only information I have to input includes beginning and ending
info.

Anyone have any suggestions?


You could try storing ONLY the ending reading and use DLookup() to only
display the previous reading.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #3  
Old October 27th, 2008, 02:01 PM posted to microsoft.public.access.tablesdbdesign
Klatuu[_3_]
external usenet poster
 
Posts: 396
Default Prefill a field

Use the form After Update event to assign the DefaultValue property of the
beginning OD number based on the current value of the ending OD number.

"katanagirl" wrote in message
...
I'm not sure how to word the question other than to give an example of the
the issue I'm having. I have a subform based on table with beginning
odometer reading and ending odometer reading. When I start a new record,
I
would like the ending odometer reading from the previous record to
'prefill'
rather than having to re-type the same information. Perhaps I totally
designed the form incorrectly, but the only information I have to input
includes beginning and ending info.

Anyone have any suggestions?



 




Thread Tools
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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.