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

using sequential numbers for documents



 
 
Thread Tools Display Modes
  #1  
Old October 4th, 2009, 09:41 AM posted to microsoft.public.access.gettingstarted
snimmuc
external usenet poster
 
Posts: 6
Default using sequential numbers for documents

Hi Guys, it's snimmuc here. I don't know whether my last comment to you
helped or hindered you, but just to make my position clear to you, let me try
again. I have received TWO Microsoft community communications from you, but
when I have clicked on the two links all 4 pages are blank except for the
headings om the browser page. The reason I have sent you this note is to
confirm I have received TWO of these notices from you, but the "contents" on
the clicked links is always blank. I hope this clarifies my position. I
thought that maybe in reading my two responses, you MAY have thought they
both referred to the ONE community communications, but in fact BOTH of the
TWO communications contained 4 blank pages (2 x 2). Thanks for your
assistance.............snimmuc
  #2  
Old October 4th, 2009, 03:34 PM posted to microsoft.public.access.gettingstarted
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default using sequential numbers for documents

"snimmuc" wrote in message
...
Hi Guys, it's snimmuc here. I don't know whether my last comment to you
helped or hindered you, but just to make my position clear to you, let me
try
again. I have received TWO Microsoft community communications from you,
but
when I have clicked on the two links all 4 pages are blank except for the
headings om the browser page. The reason I have sent you this note is to
confirm I have received TWO of these notices from you, but the "contents"
on
the clicked links is always blank. I hope this clarifies my position. I
thought that maybe in reading my two responses, you MAY have thought they
both referred to the ONE community communications, but in fact BOTH of the
TWO communications contained 4 blank pages (2 x 2). Thanks for your
assistance.............snimmuc


It sounds like you are having a browser problem. Here is a repeat of my
answer to the question in this thread:

There are so many different ways to do this. Keep in mind, however, that if
a record in the sequence is deleted, a hole will remain that must be ignored
or manually filled,

Probably the easiest way is to look and see what the last number is and add
1 to it. Use this to create a default value for that record, so it won't be
used unless you start typing the record:

Private Sub Form_Current()
On Error Resume Next
Dim x As Integer
x = DMax("ProviderNumber", "tblProviders", "ID =" & Me.txtID)

If IsNull(x) Then
Me!txtProviderNumber.DefaultValue = 1
Else
Me!txtProviderNumber.DefaultValue = x + 1
End If

End Sub
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


 




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:11 AM.


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