D
Darhl Thomason
I am creating an email to send to franchise owners as their store gets close
to construction starting. This code worked at one time, and I'm not sure
what I did to make it not work. I click a cmdButton the fires the onclick
event. Inside the onclick event it calls another sub to create the text of
the email (code snippet below). The problem is with the 2nd incidence of
me.[controlname]. When I click on the cmdButton, I get this error with
Me.txtCity highlighted as the problem "Compile Error/Method or data member
not found". So as part of my troubleshooting, I just pulled that from my
code and when I did, I got the same error with Me.txtOpenDate being the
highlighted code.
So, the first question is why is this failing? I have double-checked and
made sure this control does indeed exist on my form. The second question is
why does the second incidence fail but the first passes, then when I pull
out the second incidence, the first fails.
Thanks as always for any advice.
Darhl
strMsg = "Our construction schedule has your store opening on " &
Me.txtOpenDate & " " & _
"with POS installation occurring about 1 week prior. This puts
your upcoming store in " & _
Me.txtCity & ", " & Left(Me.txtNumber, 2) & " in the time frame
for POS installation."
to construction starting. This code worked at one time, and I'm not sure
what I did to make it not work. I click a cmdButton the fires the onclick
event. Inside the onclick event it calls another sub to create the text of
the email (code snippet below). The problem is with the 2nd incidence of
me.[controlname]. When I click on the cmdButton, I get this error with
Me.txtCity highlighted as the problem "Compile Error/Method or data member
not found". So as part of my troubleshooting, I just pulled that from my
code and when I did, I got the same error with Me.txtOpenDate being the
highlighted code.
So, the first question is why is this failing? I have double-checked and
made sure this control does indeed exist on my form. The second question is
why does the second incidence fail but the first passes, then when I pull
out the second incidence, the first fails.
Thanks as always for any advice.
Darhl
strMsg = "Our construction schedule has your store opening on " &
Me.txtOpenDate & " " & _
"with POS installation occurring about 1 week prior. This puts
your upcoming store in " & _
Me.txtCity & ", " & Left(Me.txtNumber, 2) & " in the time frame
for POS installation."