Code

D

Darrin

I am trying to write code to clear certian fields on a form linked to a table. (ie. [last] [first] [social] but certian fields such as [room] [sex] and [org] should be left) can anyone help? It has been years since I have had to write code and it is showing.
 
D

Dirk Goldgar

Darrin said:
I am trying to write code to clear certian fields on a form linked to
a table. (ie. [last] [first] [social] but certian fields such as
[room] [sex] and [org] should be left) can anyone help? It has been
years since I have had to write code and it is showing.

The basic code would be along the lines of

Me.Last = Null
Me.First = Null
Me.Social = Null

but the rest of it would depend on the circumstances.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top