G
Guest
Hi all,
My question is as follows. In an access form, when a checkbox gets uticked,
I would like to change the value of a textBox, with the code I've copied
below I get a 2115 run-time error. Any ideas? Thanks in advance!
Ruth
If Not [Borrowed] Then
[LeaseRecord].SetFocus
oldTxt = [LeaseRecord].Text
[BorrowedBy].SetFocus
newTxt = oldTxt & [BorrowedBy].Text
[LeaseRecord].SetFocus
[LeaseRecord].Text = newTxt
End If
My question is as follows. In an access form, when a checkbox gets uticked,
I would like to change the value of a textBox, with the code I've copied
below I get a 2115 run-time error. Any ideas? Thanks in advance!
Ruth
If Not [Borrowed] Then
[LeaseRecord].SetFocus
oldTxt = [LeaseRecord].Text
[BorrowedBy].SetFocus
newTxt = oldTxt & [BorrowedBy].Text
[LeaseRecord].SetFocus
[LeaseRecord].Text = newTxt
End If