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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Putting a number from a previous record on a form.



 
 
Thread Tools Display Modes
  #1  
Old August 17th, 2007, 02:11 AM posted to microsoft.public.access
Amanda
external usenet poster
 
Posts: 335
Default Putting a number from a previous record on a form.

I have a form which contains a field called order number. When creating a new
record I would like the form to display the order number of the previous
record.
For example if I created order number 27345 and then want to create a new
order I would like the form to display " Previous order number: 27345" So
that I know what order number should come next.

I cannot use an auto number as we use a number which is constanly changing
based on the date.

Any suggestions?

Thanks.
  #2  
Old August 17th, 2007, 03:24 PM posted to microsoft.public.access
Pieter Wijnen
external usenet poster
 
Posts: 1,354
Default Putting a number from a previous record on a form.

It will if you add the neccessary criteria ,-)

Pieter

"Beetle" wrote in message
...
As long as the order number is always increasing, then you can use the
DMax
function to look up the most recent number. Add an unbound text box to
your
form and set it's control source to:

=DMax("NameOfYourOrderNumberField", "NameOfYourTable")

However, if the most recent order number is not necessarily the highest
number in the table, then DMax won't work for you.

"Amanda" wrote:

I have a form which contains a field called order number. When creating a
new
record I would like the form to display the order number of the previous
record.
For example if I created order number 27345 and then want to create a new
order I would like the form to display " Previous order number: 27345" So
that I know what order number should come next.

I cannot use an auto number as we use a number which is constanly
changing
based on the date.

Any suggestions?

Thanks.



 




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 10:43 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.