Clear Form issue.

penfold1992

Registered User.
Local time
Today, 23:43
Joined
Nov 22, 2012
Messages
169
i have a form that adds some value into the database once a button is pressed. The value comes from a field that I want to clear after the value has been inserted. I have no idea what is wrong with the code but it doesnt clear the box.

heres the two pieces of code I am using...

Code:
Private Function Clearbox()
NewSupplier = Null
End Function
thats the function and then here is the button
Code:
Debug.Print "Successful Insertion"
SupplierList.Requery
Forms![Request Form]![cmbSenderReciever].Requery
Clearbox

i get the "Successful Insertion message in the "Immediate" window so I know the code gets down that far.
 
You're not using clearbox as a function, but as a subroutine.
 
what do you mean?
 

Users who are viewing this thread

Back
Top Bottom