473,414 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Me!TowFee.DefaultValue = Null -OR- Me!TowFee.DefaultValue = "" ?

MLH
On frmVehicleEntryForm...

I wanted to change the DefaultValue property
of one of my textbox controls on a form from within
code. I wanted the setting to be no setting - as if
nothing had ever been entered there. First, I used
Me!TowFee.DefaultValue = Null

That returned an error, so I used
Me!TowFee.DefaultValue = ""

That did not return an error. Curious, I decided to read
the A97 HELP on the subject. It said the following:

"In Visual Basic, use a string expression
to set the value of this property."

So. Does that mean if I want to set the DefaultValue property
to 0 (zero) from within VBA that the line should read

Me!TowFee.DefaultValue = "0" ???

Because I've BEEN USING
Me!TowFee.DefaultValue = 0
and this has worked for me quite nicely.

Apr 6 '06 #1
3 1988
MLH wrote:
On frmVehicleEntryForm...

I wanted to change the DefaultValue property
of one of my textbox controls on a form from within
code. I wanted the setting to be no setting - as if
nothing had ever been entered there. First, I used
Me!TowFee.DefaultValue = Null

That returned an error, so I used
Me!TowFee.DefaultValue = ""

That did not return an error. Curious, I decided to read
the A97 HELP on the subject. It said the following:

"In Visual Basic, use a string expression
to set the value of this property."

So. Does that mean if I want to set the DefaultValue property
to 0 (zero) from within VBA that the line should read

Me!TowFee.DefaultValue = "0" ???

Because I've BEEN USING
Me!TowFee.DefaultValue = 0
and this has worked for me quite nicely.

Can't you enter Null or 0 in the default box in the property sheet?
Apr 6 '06 #2
For a field/control type of NUMBER, then it's Me!myField.Value = 0

For a field/control type of TEXT, then it's Me!myField.Value = "0"

-Ed
"MLH" <CR**@NorthState.net> wrote in message
news:nm********************************@4ax.com...
On frmVehicleEntryForm...

I wanted to change the DefaultValue property
of one of my textbox controls on a form from within
code. I wanted the setting to be no setting - as if
nothing had ever been entered there. First, I used
Me!TowFee.DefaultValue = Null

That returned an error, so I used
Me!TowFee.DefaultValue = ""

That did not return an error. Curious, I decided to read
the A97 HELP on the subject. It said the following:

"In Visual Basic, use a string expression
to set the value of this property."

So. Does that mean if I want to set the DefaultValue property
to 0 (zero) from within VBA that the line should read

Me!TowFee.DefaultValue = "0" ???

Because I've BEEN USING
Me!TowFee.DefaultValue = 0
and this has worked for me quite nicely.

Apr 6 '06 #3
MLH
Yes, I can - manually. Perhaps from VBA, I should use "Null"???

Can't you enter Null or 0 in the default box in the property sheet?


Apr 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: pam | last post by:
sorry for my poor english first. $notation=$rs->fields; if(!empty($notation)) echo $notation; the notation field in database is a text type, when the value is null, it will cause a mistake;...
3
by: A.M. de Jong | last post by:
Reading a lot about Nulls right now I still can't find a Technical reason to use it or not. For what I've understand is this: In an Ingres database a Null column has a standard extra storage...
6
by: Kevin Frey | last post by:
Hello, I have a table which contains some nullable columns. I want to write a single query, which can be prepared (ie. prepared statement), that can handle null or non-null values for the where...
6
by: AC | last post by:
This code works great the first few times it is used in a form and then I get the error: 'QUANTITY.value' is null or not an object in IE6. The names used are generated on the server so it is not...
1
by: putty | last post by:
I found a few posts of people asking about insertCell()/insertRow() not working in IE6 SP2, and a few others about getting "null is null or not an object" errors, but no one posted a solution...
13
by: Jiho Han | last post by:
Here's the issue. You have a class, Class Person { public int id; public string firstname; public string lastname; }
3
by: binder | last post by:
I am designing a new table with a few columns that may or may not have a value on each row that is inserted. What issues determine whether to allow a NULL value to be inserted for that column or...
6
by: cleary1981 | last post by:
I have adapted code from http://dunnbypaul.net/js_mouse/ I want to use a button to create new draggable divs but i keep getting error "is null or not an object" heres the code <html> <head>...
3
by: suganya | last post by:
Hi Some professionals already has developed the project using menu. In my company, they have given me task to clear the error in that. It is a script file named as "menubarAPI4.js" which is kept...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.