A
Angi
I know this is easy, but my brain is dead tonight and i can't figure this out.
I read the earlier post but it was for a date and i need the answer for text.
Since i can't figure out how to create a single query to do what i need, i'm
writing a module to do it for me. There will be approx. 20 statements and
they all need to be for the same month, but i can't get the sql to recognize
the InpMonth.
TIA!
Dim Message, Title, InpMonth
Message = "Enter a report date ie: JULY04" ' Set prompt.
Title = "Report Date" ' Set title.
' Display message, title, and default value.
InpMonth = InputBox(Message, Title)
DoCmd.RunSQL "UPDATE [Z_Monthly PRVU Report], CCH_PRO_RVU_FY05 SET
[Z_Monthly PRVU Report].TOT_Num =
(CCH_PRO_RVU_FY05!CCH_ER_CT)+(CCH_PRO_RVU_FY05!CCH_ER_FLUORO)+(CCH_PRO_RVU
_FY05!CCH_ER_MAMMO)+(CCH_PRO_RVU_FY05!CCH_ER_MRI) WHERE ((([Z_Monthly PRVU
Report].Place)='cch_er') AND ((CCH_PRO_RVU_FY05.MONTH)= InpMonth));"
I read the earlier post but it was for a date and i need the answer for text.
Since i can't figure out how to create a single query to do what i need, i'm
writing a module to do it for me. There will be approx. 20 statements and
they all need to be for the same month, but i can't get the sql to recognize
the InpMonth.
TIA!
Dim Message, Title, InpMonth
Message = "Enter a report date ie: JULY04" ' Set prompt.
Title = "Report Date" ' Set title.
' Display message, title, and default value.
InpMonth = InputBox(Message, Title)
DoCmd.RunSQL "UPDATE [Z_Monthly PRVU Report], CCH_PRO_RVU_FY05 SET
[Z_Monthly PRVU Report].TOT_Num =
(CCH_PRO_RVU_FY05!CCH_ER_CT)+(CCH_PRO_RVU_FY05!CCH_ER_FLUORO)+(CCH_PRO_RVU
_FY05!CCH_ER_MAMMO)+(CCH_PRO_RVU_FY05!CCH_ER_MRI) WHERE ((([Z_Monthly PRVU
Report].Place)='cch_er') AND ((CCH_PRO_RVU_FY05.MONTH)= InpMonth));"