Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Msg Box to Text Box on Report

Status
Not open for further replies.

yakdogs

Programmer
Aug 13, 2002
40
US
I have a report that has a parameter written in VBA. The powers that be would like this parameter listed on the report. This is part of the code.

strBegDate = InputBox("Beginning Date")
strEndDate = InputBox("Ending Date")


I would normally build it in a query but the back end is SQL, and I am using a VIEW.

I would normally use a text box set as this:
="For the dates of " & [Beginning Date] & " to " & [Ending Date]

But this does not seem to be working. How do I get it populate a text box?

Any help is greatly appreciated.
 
In the VBA can you not do the following

TextBox1.Text = "For the dates of " & strBegDate & " to " & strEndDate


Could this work for you where your textbox is called TextBox1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top