how to get text from box in report

B

Brent

I am writing a visual basic program that calcualtes fields based on
two fields in a report. The report needs to be opened first. how do
I pull data from a text box? I tried using var1 = [text1].text
but VB says I need to set focus to it first. [text1].setfocus isn't
allowed in reports that are open. Please help.


Brent Scrivner
 
E

ET Sherman

var1 = Reports!YourReportName!YourTextBoxName

OR

var1 = me.YourTextBoxName

Regards,

ET Sherman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top