#Error

G

Guest

Hi!

I have a MainForm with a textbox to show us IdPlan in SubForm.
In TextBox ControlSource in MainForm I have:

=[SubF_ProcedPlan].[Form]![IdPlan]

When there are a plan work fine. Show us IdPlan number.
When doesn't show IdPlan (because there aren't plan) the textbox in MainForm
show us #Error.
I would like in this situation show "Hasn't plan" or nothing.

Thanks in advance.
an
 
G

Guest

Try this ---
=IIF([SubF_ProcedPlan].[Form]![IdPlan] Is Null, "Hasn't plan",
[SubF_ProcedPlan].[Form]![IdPlan])
 
G

Guest

Thank you for reply.
Return #Error too.
an

KARL DEWEY said:
Try this ---
=IIF([SubF_ProcedPlan].[Form]![IdPlan] Is Null, "Hasn't plan",
[SubF_ProcedPlan].[Form]![IdPlan])


--
KARL DEWEY
Build a little - Test a little


an said:
Hi!

I have a MainForm with a textbox to show us IdPlan in SubForm.
In TextBox ControlSource in MainForm I have:

=[SubF_ProcedPlan].[Form]![IdPlan]

When there are a plan work fine. Show us IdPlan number.
When doesn't show IdPlan (because there aren't plan) the textbox in MainForm
show us #Error.
I would like in this situation show "Hasn't plan" or nothing.

Thanks in advance.
an
 
G

Guest

Sorry, KD.

Changed TextBox Name to txtIdPlan in SubForm work fine!

Thank you very much for your solution.
an

KARL DEWEY said:
Try this ---
=IIF([SubF_ProcedPlan].[Form]![IdPlan] Is Null, "Hasn't plan",
[SubF_ProcedPlan].[Form]![IdPlan])


--
KARL DEWEY
Build a little - Test a little


an said:
Hi!

I have a MainForm with a textbox to show us IdPlan in SubForm.
In TextBox ControlSource in MainForm I have:

=[SubF_ProcedPlan].[Form]![IdPlan]

When there are a plan work fine. Show us IdPlan number.
When doesn't show IdPlan (because there aren't plan) the textbox in MainForm
show us #Error.
I would like in this situation show "Hasn't plan" or nothing.

Thanks in advance.
an
 

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