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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change value of bound subform textbox

Status
Not open for further replies.

clunetta

Technical User
Jul 6, 2007
4
US
Hello,
I have a subform on a tab in the main form that is bound to a table. In the subform's detail section are two bound textboxes. If the value in the first textbox is 0 then the value of the second textbox needs to be "--" instead of the value of the control source (this will happen about 33% of the time). This seems like a simple problem, but I can't make headway. Could anyone please point me in the right driection?

Thanks,
Charlie
 
How are ya clunetta . . .

If the data type of the second textbox is numeric you'll get a type mismatch error!

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
 
Got it, and I feel like a dork. It was so simple I didn't think of it -- an Iif statement in the textbox's control source!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top