473,387 Members | 1,722 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,387 software developers and data experts.

Default Value

Is it possible to make whatever is inputted the default value of a field
until a different value is inputted?

Thanks in advance!
Nov 13 '05 #1
5 1508
DSmith wrote:
Is it possible to make whatever is inputted the default value of a field
until a different value is inputted?


See this article:

http://www.mvps.org/access/forms/frm0012.htm

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Nov 13 '05 #2
Thank you, that worked.

"MGFoster" <me@privacy.com> wrote in message
news:gx****************@newsread1.news.pas.earthli nk.net...
DSmith wrote:
Is it possible to make whatever is inputted the default value of a field
until a different value is inputted?


See this article:

http://www.mvps.org/access/forms/frm0012.htm

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

Nov 13 '05 #3
No, it didn't. It only works while the form is opened.

"DSmith" <Do***@nospamres-xraynews.com> wrote in message
news:UD*******************@bignews5.bellsouth.net. ..
Thank you, that worked.

"MGFoster" <me@privacy.com> wrote in message
news:gx****************@newsread1.news.pas.earthli nk.net...
DSmith wrote:
Is it possible to make whatever is inputted the default value of a field until a different value is inputted?


See this article:

http://www.mvps.org/access/forms/frm0012.htm

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)


Nov 13 '05 #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you want the default to carry over to the next opening of the form
you have to save the control's default setting. One way is to save the
settings into a table - use the forms Unload event procedure.

CREATE TABLE DefaultSettings (
FormName Text(255) Not Null ,
ControlName Text(255) Not Null ,
DefaultValue Text(255) Not Null ,
CONSTRAINT PK_DefaultSettings PRIMARY KEY (FormName,ControlName)
)

When the form opens load the default settings into the controls
..DefaultValue property from the table.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQkNgIoechKqOuFEgEQKVrwCaA3hogRQvsKVwDv+r9ryX5O n7SwgAnjaP
UUdwS0JJPcpGZVDsgdU3Er+7
=qLXz
-----END PGP SIGNATURE-----
DSmith wrote:
No, it didn't. It only works while the form is opened.

"DSmith" <Do***@nospamres-xraynews.com> wrote in message
news:UD*******************@bignews5.bellsouth.net. ..
Thank you, that worked.

"MGFoster" <me@privacy.com> wrote in message
news:gx****************@newsread1.news.pas.earth link.net...
DSmith wrote:

Is it possible to make whatever is inputted the default value of a
field
until a different value is inputted?

See this article:

http://www.mvps.org/access/forms/frm0012.htm

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)



Nov 13 '05 #5
I'm sorry. I don't understand what you are saying to do. Do I put the text
below into the upload event?

CREATE TABLE DefaultSettings (
FormName Text(255) Not Null ,
ControlName Text(255) Not Null ,
DefaultValue Text(255) Not Null ,
CONSTRAINT PK_DefaultSettings PRIMARY KEY (FormName,ControlName)
)

"MGFoster" <me@privacy.com> wrote in message
news:Be*****************@newsread3.news.pas.earthl ink.net... -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you want the default to carry over to the next opening of the form
you have to save the control's default setting. One way is to save the
settings into a table - use the forms Unload event procedure.

CREATE TABLE DefaultSettings (
FormName Text(255) Not Null ,
ControlName Text(255) Not Null ,
DefaultValue Text(255) Not Null ,
CONSTRAINT PK_DefaultSettings PRIMARY KEY (FormName,ControlName)
)

When the form opens load the default settings into the controls
.DefaultValue property from the table.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQkNgIoechKqOuFEgEQKVrwCaA3hogRQvsKVwDv+r9ryX5O n7SwgAnjaP
UUdwS0JJPcpGZVDsgdU3Er+7
=qLXz
-----END PGP SIGNATURE-----
DSmith wrote:
No, it didn't. It only works while the form is opened.

"DSmith" <Do***@nospamres-xraynews.com> wrote in message
news:UD*******************@bignews5.bellsouth.net. ..
Thank you, that worked.

"MGFoster" <me@privacy.com> wrote in message
news:gx****************@newsread1.news.pas.earth link.net...

DSmith wrote:

>Is it possible to make whatever is inputted the default value of a


field
>until a different value is inputted?

See this article:

http://www.mvps.org/access/forms/frm0012.htm

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)


Nov 13 '05 #6

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

Similar topics

29
by: John Wood | last post by:
Even though CSC does its best to detect use of unassigned variables, it often misses it... for example if you just declare a double in a class without assigning a default value, it has a default...
74
by: Zytan | last post by:
I have a struct constructor to initialize all of my private (or public readonly) fields. There still exists the default constructor that sets them all to zero. Is there a way to remove the...
23
by: Jess | last post by:
Hello, I understand the default-initialization happens if we don't initialize an object explicitly. I think for an object of a class type, the value is determined by the constructor, and for...
4
by: Jess | last post by:
Hello, I tried several books to find out the details of object initialization. Unfortunately, I'm still confused by two specific concepts, namely default-initialization and...
10
by: Brad Baker | last post by:
I have an asp.net/csharp application that requires a particular variable to work properly. This variable is usually passed via a query string in the URL when the application is first run but under...
4
by: Macneed | last post by:
i am a newbie, i remember i read a book talking about when u declare a array variable using float ABC = new float; the whole array element in ABC ( ABC to ABC ) will automatic initialize to 0...
4
by: Dave Burns | last post by:
Hello, I am trying to specify a logical default value for a in a WCF Web Service using basicHttpBinding. I realize that the language defaults are: int - 0 string - null bool - false
7
by: =?Utf-8?B?Y291Z2FyaXN0aWM=?= | last post by:
I am trying to convert an C# application to VB and have one issue which is converting the generic value to the default. C# uses return default(T) as the return value how would I translate this in...
43
by: kenneth | last post by:
Dear all, I have encountered this weird problem. I have a class definition with an __init__ argument 'd' which defaults to {}. This argument is put in the 'self.d' attribute at initialization...
9
by: lawpoop | last post by:
I'm trying to write some simple code, but I might be simplifying it too much. I have a function that either returns a string that I want, or FALSE. In the code that I'm working on, I would like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.