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

Help with Forms!



 
 
Thread Tools Display Modes
  #1  
Old July 14th, 2004, 02:00 PM
Beth
external usenet poster
 
Posts: n/a
Default Help with Forms!

I would like to know how to insert a log number in every
record of an Access form that I have created.

Each log number would sequentially increase by 1 for each
record. For example, record 1 would be ABC0001, record 2
would be ABC0002, record 3 would be ABC0003, etc.

Can anyone help?

  #2  
Old July 14th, 2004, 05:33 PM
Wayne Morgan
external usenet poster
 
Posts: n/a
Default Help with Forms!

Using the pattern you have given, set the default value of the control that
shows the log number to

="ABC" & Format(DMax("CLng(Right([FieldName],4))", "[TableName]") + 1,
"0000")

--
Wayne Morgan
Microsoft Access MVP


"Beth" wrote in message
...
I would like to know how to insert a log number in every
record of an Access form that I have created.

Each log number would sequentially increase by 1 for each
record. For example, record 1 would be ABC0001, record 2
would be ABC0002, record 3 would be ABC0003, etc.

Can anyone help?



  #3  
Old July 14th, 2004, 05:35 PM
Wayne Morgan
external usenet poster
 
Posts: n/a
Default Help with Forms!

ps,

Will this be a multi-user database? If so, this will need to be moved from
the default value.

--
Wayne Morgan
Microsoft Access MVP


 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
datasheet forms open in form mode from the Switchboard Paul James Using Forms 5 July 13th, 2004 06:51 AM
Data entry forms and/or subforms Hugh Crean Using Forms 2 July 8th, 2004 05:56 PM
Word Forms? CEVisker New Users 4 June 21st, 2004 01:25 AM
Forms Check Box not working DLLower General Discussion 2 June 17th, 2004 09:34 PM
matching multiple forms on open to form records EdwardA Using Forms 0 June 10th, 2004 06:38 PM


All times are GMT +1. The time now is 09:25 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.