Showing Unbound fields in form to report.

G

Guest

Hi,

Is there anyway to display some unbound fields in a form to report?

To be more specific, this is the situation.

There is a quotation form which has discount field (unbounded) that
subtracting its value from total amount field (bounded).

My question is that how to show that discount field in report view.

Many thanx in advance.
 
G

Guest

Dear Mr.Cohen,

I have placed following to control source for the report field in report,
but it returns #Name?

value.

=[Forms]![FormName]![TextBoxName]

Would you mind to tell me where I made mistake?
 
G

Guest

I would expect that your first mistake was not providing the form and control
name. This limited Ofer's reply to made up form and control names that you
should have replaced with your actual form and control name.
 
G

Guest

Dear Mr.Hookom,

I didn't use the exact expression but my form name, and textbox name, but it
returned #Name?.

I double checked whether the form is loaded, but the form is opened.

Thank you so much for your help.

Duane Hookom said:
I would expect that your first mistake was not providing the form and control
name. This limited Ofer's reply to made up form and control names that you
should have replaced with your actual form and control name.
--
Duane Hookom
Microsoft Access MVP


Sohn said:
Dear Mr.Cohen,

I have placed following to control source for the report field in report,
but it returns #Name?

value.

=[Forms]![FormName]![TextBoxName]

Would you mind to tell me where I made mistake?
 
G

Guest

Would make a different if you posted what you wrote, we can't see what
possible mistake you made, like

Missing equal sign from
=[Forms]![FormName]![TextBoxName]

will give an #Name error

Or, writing Form instead of forms

--
Good Luck
BS"D


Sohn said:
Dear Mr.Hookom,

I didn't use the exact expression but my form name, and textbox name, but it
returned #Name?.

I double checked whether the form is loaded, but the form is opened.

Thank you so much for your help.

Duane Hookom said:
I would expect that your first mistake was not providing the form and control
name. This limited Ofer's reply to made up form and control names that you
should have replaced with your actual form and control name.
--
Duane Hookom
Microsoft Access MVP


Sohn said:
Dear Mr.Cohen,

I have placed following to control source for the report field in report,
but it returns #Name?

value.

=[Forms]![FormName]![TextBoxName]

Would you mind to tell me where I made mistake?
 
G

Guest

Could you provide the exact expression you used? Did you use the expression
builder to enter the expression?
--
Duane Hookom
Microsoft Access MVP


Sohn said:
Dear Mr.Hookom,

I didn't use the exact expression but my form name, and textbox name, but it
returned #Name?.

I double checked whether the form is loaded, but the form is opened.

Thank you so much for your help.

Duane Hookom said:
I would expect that your first mistake was not providing the form and control
name. This limited Ofer's reply to made up form and control names that you
should have replaced with your actual form and control name.
--
Duane Hookom
Microsoft Access MVP


Sohn said:
Dear Mr.Cohen,

I have placed following to control source for the report field in report,
but it returns #Name?

value.

=[Forms]![FormName]![TextBoxName]

Would you mind to tell me where I made mistake?
 
G

Guest

I am sorry not to be cleared.

Here is the situation

There is an unbounded discount field in form "frm_invoice_detail"

I have put "discount" textbox in my report, rpt_invoice.

In the textbox, I directed the control source as following:

=[forms]![frm_invoice_detail]![discount]

I hope this describe my problem.

Many thanx.

Ofer Cohen said:
Would make a different if you posted what you wrote, we can't see what
possible mistake you made, like

Missing equal sign from
=[Forms]![FormName]![TextBoxName]

will give an #Name error

Or, writing Form instead of forms

--
Good Luck
BS"D


Sohn said:
Dear Mr.Hookom,

I didn't use the exact expression but my form name, and textbox name, but it
returned #Name?.

I double checked whether the form is loaded, but the form is opened.

Thank you so much for your help.

Duane Hookom said:
I would expect that your first mistake was not providing the form and control
name. This limited Ofer's reply to made up form and control names that you
should have replaced with your actual form and control name.
--
Duane Hookom
Microsoft Access MVP


:


Dear Mr.Cohen,

I have placed following to control source for the report field in report,
but it returns #Name?

value.

=[Forms]![FormName]![TextBoxName]

Would you mind to tell me where I made mistake?
 
G

Guest

The other cause of an error like this is if the control name is also the name
of a field.

Is there a reason why you need to create a report that depends on pulling
data from a form control? Something like this generally relies on values from
records in a table, not a value from a form control.

--
Duane Hookom
Microsoft Access MVP


Sohn said:
I am sorry not to be cleared.

Here is the situation

There is an unbounded discount field in form "frm_invoice_detail"

I have put "discount" textbox in my report, rpt_invoice.

In the textbox, I directed the control source as following:

=[forms]![frm_invoice_detail]![discount]

I hope this describe my problem.

Many thanx.

Ofer Cohen said:
Would make a different if you posted what you wrote, we can't see what
possible mistake you made, like

Missing equal sign from
=[Forms]![FormName]![TextBoxName]

will give an #Name error

Or, writing Form instead of forms

--
Good Luck
BS"D


Sohn said:
Dear Mr.Hookom,

I didn't use the exact expression but my form name, and textbox name, but it
returned #Name?.

I double checked whether the form is loaded, but the form is opened.

Thank you so much for your help.

:

I would expect that your first mistake was not providing the form and control
name. This limited Ofer's reply to made up form and control names that you
should have replaced with your actual form and control name.
--
Duane Hookom
Microsoft Access MVP


:


Dear Mr.Cohen,

I have placed following to control source for the report field in report,
but it returns #Name?

value.

=[Forms]![FormName]![TextBoxName]

Would you mind to tell me where I made mistake?
 

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