So I have a dilemma I am trying to work through. I have 1 access table with 13 fields (Name, Jan Proj, Feb Proj, Mar Proj, Apr Proj, May Proj, Jun Proj, Jul Proj, Aug Proj, Sep Proj, Oct Proj, Nov Proj, Dec Proj).
The names can contain duplicates and the Month Proj contains either a 0 or a positive number.
I was thinking about creating a form which allows a user to select a distinct list of user names (keeping a * in the drop down for all), then allowing the user to select the month they wish to run through for data.
So for example if the user Selects Dave Righetti along with August for the month, I want access to run a query to give populate a summary result:
[Jan Proj]+[Feb Proj]+[Mar Proj]+[Apr Proj]+[May Proj]+[Jun Proj]+[Jul Proj]+[Aug Proj] = August Projected
I want this to automatically Export into an Excel file (Which I believe I have code for). I am looking for syntax too, since I will have to do other similar calculations like this for other fields and tables as well (Though if I am combining tables I might do a simple query first, then do my calculation)
Any help on this would be great. I know it has to be something like
If (User Input) = August
then [Jan Proj]+[Feb Proj]+[Mar Proj]+[Apr Proj]+[May Proj]+[Jun Proj]+[Jul Proj]+[Aug Proj]
Else If (User Input) = September
.....etc etc etc etc
The names can contain duplicates and the Month Proj contains either a 0 or a positive number.
I was thinking about creating a form which allows a user to select a distinct list of user names (keeping a * in the drop down for all), then allowing the user to select the month they wish to run through for data.
So for example if the user Selects Dave Righetti along with August for the month, I want access to run a query to give populate a summary result:
[Jan Proj]+[Feb Proj]+[Mar Proj]+[Apr Proj]+[May Proj]+[Jun Proj]+[Jul Proj]+[Aug Proj] = August Projected
I want this to automatically Export into an Excel file (Which I believe I have code for). I am looking for syntax too, since I will have to do other similar calculations like this for other fields and tables as well (Though if I am combining tables I might do a simple query first, then do my calculation)
Any help on this would be great. I know it has to be something like
If (User Input) = August
then [Jan Proj]+[Feb Proj]+[Mar Proj]+[Apr Proj]+[May Proj]+[Jun Proj]+[Jul Proj]+[Aug Proj]
Else If (User Input) = September
.....etc etc etc etc