davefwelch
David
- Local time
- Today, 10:13
- Joined
- Jan 4, 2005
- Messages
- 47
Can someone suggest to me the way I would get this done?
I have a button on a form for Projects, the button opens a form (Date Entry) to create a new Pay Request for the selected Project. I know how to "pass" the Project key to the Pay Request form, but what I am wanting to do is have one of the fields on the Pay Request form (PayReqNum) default to the NEXT consecutive pay request for that project.
So my PayRequest table may end up looking like the Excel attachment. As you can see, project 2009-15 has had three pay requests submitted, each consecutively number 1, 2, 3. I was thinking that I would have a field (say, PayReqNumPrev) in the PayRequest table that would simply contain PayReqNum + 1, and I could set the new PayReqNum to be equal to PayReqNumPrev. Problem with this is, when I open the form in Data Entry, none of the fields will ave any value (short of their given default value). Any suggestions folks?
I have a button on a form for Projects, the button opens a form (Date Entry) to create a new Pay Request for the selected Project. I know how to "pass" the Project key to the Pay Request form, but what I am wanting to do is have one of the fields on the Pay Request form (PayReqNum) default to the NEXT consecutive pay request for that project.
So my PayRequest table may end up looking like the Excel attachment. As you can see, project 2009-15 has had three pay requests submitted, each consecutively number 1, 2, 3. I was thinking that I would have a field (say, PayReqNumPrev) in the PayRequest table that would simply contain PayReqNum + 1, and I could set the new PayReqNum to be equal to PayReqNumPrev. Problem with this is, when I open the form in Data Entry, none of the fields will ave any value (short of their given default value). Any suggestions folks?