Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / July 2008

Tip: Looking for answers? Try searching our database.

Get Next 'ProjID'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barry Prentiss - 28 Jul 2008 16:47 GMT
Hi,
I am trying to get the last 'projID' and add 1 to it to sequentially number
my forms.
I have a fully functional method using the projNum concept referred to in
this newsgroup (thank you very much).
I would like to be able to use the existing projID field (with a
'TEST-10001' format) rather than a separate projNum field (with a '10001'
format), but am having difficulty getting the max().
I have a data connection (TEST.GetLastProjID) that queries the form library
for the projID column.
I then try to get the max() by using something like:
max(number(substring-after(@ProjID, "-"))) + 1
This generates an error 'after max()'.
Anybody know what I'm doing wrong?
Thx,
 Barry
Barry Prentiss - 28 Jul 2008 17:04 GMT
I also tried concat(DgnGroup, "-", number(substring-after(max(@ProjID),
"-")) + 1) which does not generate any errors, but fills the projID field
with 'TEST-NaN'

Thx,
 Barry

> Hi,
> I am trying to get the last 'projID' and add 1 to it to sequentially
[quoted text clipped - 12 lines]
> Thx,
>  Barry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.