Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / May 2005

Tip: Looking for answers? Try searching our database.

Setting value of a text box on a report from VBA code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan - 19 May 2005 16:00 GMT
Good Morning,

I have created a coversheet and would like to add a date field.  I have an
input box to enter the day to be displayed, but I'm having trouble setting
the text box value to the date supplied.

I'm sorry this is so vague, please let me know what information you need to
answer this issue.

Thank you,
Dan
Margaret Bartley - 24 May 2005 22:55 GMT
I'm not sure where your input box is.  Is it on a form?  If so,
you can reference it like any other data source:
=forms!MyForm!txtInput

> Good Morning,
>
> I have created a coversheet and would like to add a date field.  I have an
> input box to enter the day to be displayed, but I'm having trouble setting
> the text box value to the date supplied.
Dan - 25 May 2005 13:41 GMT
I have a input box popup, but I can't get the value from the input box to
carry over to the form.

> I'm not sure where your input box is.  Is it on a form?  If so,
> you can reference it like any other data source:
[quoted text clipped - 5 lines]
> > input box to enter the day to be displayed, but I'm having trouble setting
> > the text box value to the date supplied.
Margaret Bartley - 31 May 2005 22:52 GMT
That's why I asked where the input box was.  If it is in your report, you
will have to put a global variable in your report, and reference it in the
OnFormat action of whichever section the data will be in.  If the input box
is called from a form, you would put the result in a text box on your form,
and reference that .

In any event, you need to have a variable to hold the value, and then
reference that variable in your report.

>I have a input box popup, but I can't get the value from the input box to
> carry over to the form.
[quoted text clipped - 10 lines]
>> > setting
>> > the text box value to the date supplied.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.