A
Antonio Pruett-Saratan II
I have been trying to create a Quote # based on 3 boxes on a form for a while
now and havent been able to make it work. This is mostly because I do not
have a foundation or understand some of the fundamentals of VBA.
Fields associated with the problem:
[QuoteID] - PK on the table
[QuoteNumber] - field that stores the quote number, is required,
[Date] - field that is set as Date()
[PKSalesID]- is the a FK on the table and is displayed as [SalesID] from
another table
These fields are all on the same form.
When I press a button called create a cmdCreateQuote it should Populate the
field [QuoteNumber] in the following format
"Q-", [SalesID], [Date], (1)
the (1) represents the salesperson's number of quotes for that day. so if
bob already had one quote the second quote of that day for bob would be (2)
Is that clear I hope so. Now I have been given 2 ways to approach this one
with a Module and one by using the dmax function. both of these ways do not
seem to be working.
I just need an easy way to do this any suggestions?
I am very new to Access and VBA. So I encounter a lot of problems and
rarely understand what I am being told so please explain simply to my
question. Thank you!
now and havent been able to make it work. This is mostly because I do not
have a foundation or understand some of the fundamentals of VBA.
Fields associated with the problem:
[QuoteID] - PK on the table
[QuoteNumber] - field that stores the quote number, is required,
[Date] - field that is set as Date()
[PKSalesID]- is the a FK on the table and is displayed as [SalesID] from
another table
These fields are all on the same form.
When I press a button called create a cmdCreateQuote it should Populate the
field [QuoteNumber] in the following format
"Q-", [SalesID], [Date], (1)
the (1) represents the salesperson's number of quotes for that day. so if
bob already had one quote the second quote of that day for bob would be (2)
Is that clear I hope so. Now I have been given 2 ways to approach this one
with a Module and one by using the dmax function. both of these ways do not
seem to be working.
I just need an easy way to do this any suggestions?
I am very new to Access and VBA. So I encounter a lot of problems and
rarely understand what I am being told so please explain simply to my
question. Thank you!