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 / October 2007

Tip: Looking for answers? Try searching our database.

Increment number by 1

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adam bob - 08 Oct 2007 09:19 GMT
Hi friends,

I have a problem with getting this InfoPath form to work. Here is the
story behind what I need.

I have a project number and an issue number. A project number is
unique to a project. An issue number is a unique value for an issue of
the project. (1 project can have many issues). So a project number
would look like this; 100. Then an issue number for that project would
look like this; 100.1, or 100.2 for example.

What I need is the issue number to increment every time someone
selects a project number from a form. So if a user selects project
number 100, and the current issue is 100.1, it needs to increment it
by one to 100.2.

This information is read in from a form library within SharePoint. The
structure of the form library looks something like this;

Form - title - project number - more attributes here - issue number

I currently have a data source that points to the Project number using
a dropdown box. Then the issue number is a textbox, which needs to
update automatically once the project number has been selected.

My current formula looks like this; max(@Project_Number[. =
project_no])

This basically gets the project number from the form library as oppose
to getting the incremented issue number.

Please advise, many thanks in advance!!
Clay Fox - 09 Oct 2007 19:13 GMT
You should be able to use the concatenation function to create the number you
would need. get the project number then concatenate the decimal point and
then 100 + 1 or whatever you need.   Although I am not sure a numeric with a
decimal point seperator is best practice.

Have you thought about using a database to store your projects and issues?  
I think this would give me more flexibility and could have these numbers
autoassigned and the relationships can be maintained easier.

I would recommend the Database Accelerator. http://www.qdabra.com
There is also a sample solution called project tracker which already has
much of what you are discussing or could provide an example or ideas.

Signature

Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com

> Hi friends,
>
[quoted text clipped - 28 lines]
>
> Please advise, many thanks in advance!!
 
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.