G
Guest
Working on a system that reports customer complaints.
In a Excel version there is a report number automatically generated.
This number is unique so a primary key can be set in access for this value.
How it get the value is simple;
User enters the date in Date Rec'd field
This sets a Year and Month value in their respected fields.
Then it sums the number of entries based on year and month values in data
table then add 1 to create the index number.
The result equals six digit date "yymmdd - Indx No"
If I have a table in access that has year and month fields.
What is the best method to use to auto input the year and month value in
these fields after the user enters the date rec'd' value. The users form does
not show these fields but are in the table.
I have tried "Default Value" in the table field but my syntax is wrong
Tried Marco and also VBA but my knowledge is lacking.
The best i have so far is a query that counts the number of entries in the
DateRecd field but the result is by day not month, (i.e. Count(Year[DateRecd])
Your help is very appreicated.
thanks
In a Excel version there is a report number automatically generated.
This number is unique so a primary key can be set in access for this value.
How it get the value is simple;
User enters the date in Date Rec'd field
This sets a Year and Month value in their respected fields.
Then it sums the number of entries based on year and month values in data
table then add 1 to create the index number.
The result equals six digit date "yymmdd - Indx No"
If I have a table in access that has year and month fields.
What is the best method to use to auto input the year and month value in
these fields after the user enters the date rec'd' value. The users form does
not show these fields but are in the table.
I have tried "Default Value" in the table field but my syntax is wrong
Tried Marco and also VBA but my knowledge is lacking.
The best i have so far is a query that counts the number of entries in the
DateRecd field but the result is by day not month, (i.e. Count(Year[DateRecd])
Your help is very appreicated.
thanks