Deleting info in a text boxes (An easy one) (1 Viewer)

Wee

Shortest Board Member
Local time
Today, 03:50
Joined
Aug 11, 2004
Messages
13
I'm sure this is an easy problem to solve but at this time in the morning I am struggling.

I am looking to have a command button that On Click deletes the info in 3 text boxes.

Any help greatly received,

Wee
 

maxmangion

AWF VIP
Local time
Today, 04:50
Joined
Feb 26, 2003
Messages
2,805
on the OnClick event you can put

Me.Textbox1 = ""
Me.Textbox2 = ""
Me.Textbox3 = ""
 

Wee

Shortest Board Member
Local time
Today, 03:50
Joined
Aug 11, 2004
Messages
13
Thanks, next problem:

Code:
Run-time error '3315'

Field 'Hazardous Substances.R/S Phrases' can't be a zero length string.

So how do I change the field so that it can? My lack of access knowledge is really showing today, but on the plus side my new avator works :D
 

maxmangion

AWF VIP
Local time
Today, 04:50
Joined
Feb 26, 2003
Messages
2,805
check in your table properties if you set the options Required and Allow Zero length, they should be No and Yes respectively
 

Mile-O

Back once again...
Local time
Today, 04:50
Joined
Dec 10, 2002
Messages
11,316
maxmangion said:
Me.Textbox1 = ""
Me.Textbox2 = ""
Me.Textbox3 = ""

Code:
Me.Textbox1 = Null
Me.Textbox2 = Null
Me.Textbox3 = Null

:p
 

Wee

Shortest Board Member
Local time
Today, 03:50
Joined
Aug 11, 2004
Messages
13
That was pretty simple :rolleyes:

Thank you very much, I could have been staring at that for hours :D
 

Wee

Shortest Board Member
Local time
Today, 03:50
Joined
Aug 11, 2004
Messages
13
I'm not changing it now Mile-o-Phile :D

I have loads more bigger problems to come as the day progresses which you can help with though, unless I get sidetracked by the olympics, shhh don't tell my boss ;)
 

Mile-O

Back once again...
Local time
Today, 04:50
Joined
Dec 10, 2002
Messages
11,316
Wee said:
I'm not changing it now Mile-o-Phile :D

unless I get sidetracked by the olympics

It's interesting that with reference to the Olympics, you shouldn't be concerned about your own performance. ;)
 

Wee

Shortest Board Member
Local time
Today, 03:50
Joined
Aug 11, 2004
Messages
13
Well I'm pretty sure i could win the gold in the lazyest employee event. Apparently they're not adding that until Beijing though so I'll have to keep up this rigerous training regime for the next 4 years ;)
 

Users who are viewing this thread

Top Bottom