How do I reset the value of a field? I am using TransferText and after it exports, I want the value of a field to be reset (yes/no). I need it to go back to no for all records.
How many of these controls do you have on your form?
If it is a lot, then you could cycle through the controls collection, & assuming you have named the controls logically you should be able to reset them based upon a few rules.
If there are only a few controls then you could manually reset each control... James Goodman
You might be able to say, in query design, <field name>: 'No' or, in SQL design, 'No' AS <field name>. Haven't done this with strings, so I don't know for sure if it works.
Now I get nothing when I export. I want it to export all of the fields of the modified record in the table. I have this for the On Click of "modified" field:
Private Sub Modified_Click()
Me.Modified = "Null"
End Sub
Now nothing exports. Thanks so much for taking the time to help.
You are missing the export code.
All that will happen with the code you have posted is it will reset the Modified field to null.
You are also setting it to a string called 'null', rather than assigning it null. You need to remove the inverted commas to assign null to the field... James Goodman
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.