Mysql jdbc used, I have this form:
If I enter an amount in the widthdraw column I would like to have a 0.00 in deposit and vice versa.
I know how to get and change data in a text box, but not in the forms datasheet.
I don’t want it prefilled, only updated to 0.00 if an amount is entered in "oposite field.
Tried:
Sub fixzero
Dim vwd
DIM vdep
oForm = ThisComponent.DrawPage.Forms.getByName("MainForm") 'Get Form'
oField = oForm.getByName("widthdraw") 'Get access to field'
oField2 = oForm.getByName("deposit")
vdep = oField2.getCurrentValue()
If IsNull(vdep) Then
oField2.Value = (0)
End If
End Sub
But just errors, that work for regular text boxes is my guess.
Any suggestions? Currently I have to type in 0.00. Currently otherwise it remains blank (null).