problem with ubound textbox

haamt

New member
Local time
Today, 21:24
Joined
Apr 18, 2016
Messages
1
i have 3 unbound textbox



textbox1 enter a number

textbox3 enter a number

textbox5 total of the two textbox

Text5 = Val(Text1) + Val(Text3) i but this code in Form_Current()

the problem is after entering the two numbers text5 don't show the total i used textbox5.requery but still not working!
 

Attachments

Your form is unbound so oncurrent event doesn't fire at all.
You need to use textbox1 and textbox3 events (after update or onchange) to calculate value of textbox5.
 
Why not simply use the text5 ControlSource? No event required.

Code:
= Val(textbox1) + Val(textbox3)
 

Users who are viewing this thread

Back
Top Bottom