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

Help wanted: what source code to use with form field rules

Any help would be appreciated to solve the following simple problem that
I will describe.

***

There is a form called "red chocolate form".
The form has a particular subform field that has a checkmark box that is
selectable as on or off (on if there is a checkmark inside it).

The table that contains the data for the form is known as "red chocolate
table".
The table has a field name known as "sweetener".
The datatype for the sweeter field is Yes/No.

Thus if there appears a checkmark in the form "red chocolate form" where the
checkmark box is, this means the record contains sweetener".

**

Right now if I select the field name known as "sweetener" from within the
design view of my table known as "red chocolate table", I can see the
General Properties has as the Default Value of "True".

It used to be "False", however I changed it to True so that everytime a new
record was added using a different form, the "sweetener" would be selected
as default.

The problem right now is that everytime a new sub record is added, I don't
want
"sweetener" selected by default. Its acceptable if everyime a primary
record is
added sweetener is selected by default, however not when a record is added
from the subform.

The form that indicates whether or not there is a sweetener contains a
subform for
the same primary record whereby additional information can be added via the
subform, and since the subform contains the checkbox for "sweetener" within
the
form-- it is automatically set to be true and is selected.

The primary information has a ID number that remains the same even though
different subform data can be added, thus maybe somehow if the validation
rule
or default value contains an expression that monitors the ID number to see
if its
the same ID number as the previous entries within the ID numbers then it
won't
select "true" by default.

I only want it to be true if its an entirely new primary record that is
added to the
table, and not a new subform record. Is there any rule or expression I can
type
into the default value line or validation rule for the field name sweetener
?

From the form level there should only be a maximum of 1 true value per ID
number, unless ofcourse its modified from the table level.
Nov 12 '05 #1
3 1944
If the Sweetner Field is in the Table whose data is RecordSource for the
main form, why would you put the Check Box for that Field in a Form embedded
in a Subform Control. Those are normally, and properly, used to show Records
that are related to the Records in the main Form, not data that resides in
the main Form Record.

Could you clarify what data you are displaying where? Without that
information, we aren't likely to be able to be of much help.

Larry Linson
Microsoft Access MVP
"Earthling" <in******@earthplanet09087.com> wrote in message
news:vE******************@twister01.bloor.is.net.c able.rogers.com...
Any help would be appreciated to solve the following simple problem that
I will describe.

***

There is a form called "red chocolate form".
The form has a particular subform field that has a checkmark box that is
selectable as on or off (on if there is a checkmark inside it).

The table that contains the data for the form is known as "red chocolate
table".
The table has a field name known as "sweetener".
The datatype for the sweeter field is Yes/No.

Thus if there appears a checkmark in the form "red chocolate form" where the checkmark box is, this means the record contains sweetener".

**

Right now if I select the field name known as "sweetener" from within the
design view of my table known as "red chocolate table", I can see the
General Properties has as the Default Value of "True".

It used to be "False", however I changed it to True so that everytime a new record was added using a different form, the "sweetener" would be selected
as default.

The problem right now is that everytime a new sub record is added, I don't
want
"sweetener" selected by default. Its acceptable if everyime a primary
record is
added sweetener is selected by default, however not when a record is added
from the subform.

The form that indicates whether or not there is a sweetener contains a
subform for
the same primary record whereby additional information can be added via the subform, and since the subform contains the checkbox for "sweetener" within the
form-- it is automatically set to be true and is selected.

The primary information has a ID number that remains the same even though
different subform data can be added, thus maybe somehow if the validation
rule
or default value contains an expression that monitors the ID number to see
if its
the same ID number as the previous entries within the ID numbers then it
won't
select "true" by default.

I only want it to be true if its an entirely new primary record that is
added to the
table, and not a new subform record. Is there any rule or expression I can type
into the default value line or validation rule for the field name sweetener ?

From the form level there should only be a maximum of 1 true value per ID
number, unless ofcourse its modified from the table level.

Nov 12 '05 #2

"Larry Linson" <bo*****@localhost.not> wrote in message
news:F1******************@nwrddc02.gnilink.net...
Comments: This message did not originate from the Sender address above.
It was remailed automatically by anonymizing remailer software.


Please ignore this posting.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #3
"Tony Toews" <to**********@yahoo.com> wrote:
X-Abuse-Report: ab***@teranews.com


Forged posting.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #4

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

Similar topics

2
by: Warstar | last post by:
hi there i am working on a site with some forms and i was wondering is it possible to make a drop down menu where u can select like i want 1,2 or 3 new items and then the form would apear with 1,2...
2
by: qsweetbee | last post by:
I have a form(fAddUsers) in my database. It is continue form for data entry. Some fields are required fields. Some are optional fields. There is 1 particular filed(TokenExpirationDate)on the form...
2
by: mark | last post by:
I've been working on an Access 2000 database for a couple of weeks now. I took a course in access about a year ago, a crash course, and I learned a ton, but I didn't touch Access for the year since...
4
by: Nathan Bloomfield | last post by:
I am using the code below to filter a report: Private Sub Set_Filter_Click() If Me! And Me! <> "" Then If Application.CurrentProject.AllReports("rptDailyOutput").IsLoaded Then DoCmd.Close...
7
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a...
10
by: 60325 | last post by:
This is the page where I collect the data in drop-down boxes with values of 1-10 and send it to a submitted page to do calculations. Example: Employee1 TeamScore(1-10) Employee2 ...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
4
theaybaras
by: theaybaras | last post by:
Hi All... I've read both of the requery discussions I could find... Refresh ComboBox After Adding New Values via a Seperate Form and refresh a form but am not quite able to get this to apply...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
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: 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: 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...

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.