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  dBforums > PC based Database Applications > Microsoft Excel > next number

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-04, 10:55
surfacesys surfacesys is offline
Registered User
 
Join Date: Mar 2004
Location: Greenville, SC
Posts: 271
next number

Is there a way to do this:
I have a form called "List of Proposals Written" that is listed by the Proposal number.

Is there a way to display on another excel spreadsheet, the most current Proposal number?

I know Access you use something like Dmax(ProposalID)+1
What should I do in Excel?

Any help would be greatly appreciated!
Michael
__________________
Gotta to do some code
Reply With Quote
  #2 (permalink)  
Old 08-22-04, 22:51
savbill savbill is offline
Registered User
 
Join Date: Feb 2004
Posts: 533
Quote:
Originally Posted by surfacesys
Is there a way to display on another excel spreadsheet, the most current Proposal number?

I know Access you use something like Dmax(ProposalID)+1
What should I do in Excel?
In Excel you can run many worksheet functions in VB by preceeding the function name with 'Application'
Debug.Print Application.Max(Columns("A"))
This will work if you are using a consecutive numeric value for your proposal numbers. If you have an alpha numeric id like prop123, prop124 ... then you will need to evaluate another way for example sort on the id field and check the last entry in the column.
__________________
~

Bill
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On