473,387 Members | 1,650 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.

Using Checkboxes on a Form

Hello everyone!

I am in the process of setting up a client contact database for my
office and I have run into a bit of a snag. The database I have allows
for one address per client but some of our clients have two that we
will use - one for home and one for work.
Problem #1 where do I add in the fields for a second address - in the
Contacts Table that is already established or a separate Table?

We also would like to use these addresses to send out Christmas cards,
but some cards we would send to the home address and some we would
want to send to the work address. Instead of creating a separate
database for the Christmas card labels I would really love to just use
what I have.
Problem #2 If I have the fields available on one form to enter two
addresses, I would like to use a checkbox so that whoever is entering
the data can check off which address should be printed on labels for
our cards.

Problem #3 If I have checkboxes on the form, how do create a query
that would pull the address information that was checked off?

Problem #4 How do I create labels if I have two fields for Names,
addresses, city, state, etc...??

I am basically a beginner at Access, but I have taken some courses and
know my way around somewhat. If you have an answer for me I would just
ask that you be as specific as possible. I hope I have asked my
question as specific as possible, but if you need more info, please
ask me!!

Thanks in advance for all your help!!

Jun 15 '07 #1
3 2125
you need a second table for the addresses, that way you can have as many
addresses as you want for a contact, your other option is to add alternate
address fields to your first table giving you the option to have one or two
addresses for a contact. The first option is definetly the correct way to
handle it.

"aaa2876" <am*****@hotmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
Hello everyone!

I am in the process of setting up a client contact database for my
office and I have run into a bit of a snag. The database I have allows
for one address per client but some of our clients have two that we
will use - one for home and one for work.
Problem #1 where do I add in the fields for a second address - in the
Contacts Table that is already established or a separate Table?

We also would like to use these addresses to send out Christmas cards,
but some cards we would send to the home address and some we would
want to send to the work address. Instead of creating a separate
database for the Christmas card labels I would really love to just use
what I have.
Problem #2 If I have the fields available on one form to enter two
addresses, I would like to use a checkbox so that whoever is entering
the data can check off which address should be printed on labels for
our cards.

Problem #3 If I have checkboxes on the form, how do create a query
that would pull the address information that was checked off?

Problem #4 How do I create labels if I have two fields for Names,
addresses, city, state, etc...??

I am basically a beginner at Access, but I have taken some courses and
know my way around somewhat. If you have an answer for me I would just
ask that you be as specific as possible. I hope I have asked my
question as specific as possible, but if you need more info, please
ask me!!

Thanks in advance for all your help!!

Jun 15 '07 #2
Add a field called Address2 as well as City2, State2, ZIP2 or something
similar to the Contacts table and add another field that is a Yes/No to the
table and call it something like UseAddress2.
Add these fields to your form and place the UseAddress2 near the new Address2
data and label it "Use this address for Christmas card labels .
In a query for the labels create a field with Addr:IIf(UseAddress2=-1,
[Address2],Address) in the Field space and CityState:IIf(UseAddress2=-1,
[City2] & ", " & [State2] & " " & [ZIP2],[City] & ", " & [State] & " " &
[ZIP]) assuming that the current address in the table is named Address, City,
State, ZIP
When you have a checkbox a -1 is the value returned for Yes and a 0 is for No.

Hope this helps,
Bob
aaa2876 wrote:
>Hello everyone!

I am in the process of setting up a client contact database for my
office and I have run into a bit of a snag. The database I have allows
for one address per client but some of our clients have two that we
will use - one for home and one for work.
Problem #1 where do I add in the fields for a second address - in the
Contacts Table that is already established or a separate Table?

We also would like to use these addresses to send out Christmas cards,
but some cards we would send to the home address and some we would
want to send to the work address. Instead of creating a separate
database for the Christmas card labels I would really love to just use
what I have.
Problem #2 If I have the fields available on one form to enter two
addresses, I would like to use a checkbox so that whoever is entering
the data can check off which address should be printed on labels for
our cards.

Problem #3 If I have checkboxes on the form, how do create a query
that would pull the address information that was checked off?

Problem #4 How do I create labels if I have two fields for Names,
addresses, city, state, etc...??

I am basically a beginner at Access, but I have taken some courses and
know my way around somewhat. If you have an answer for me I would just
ask that you be as specific as possible. I hope I have asked my
question as specific as possible, but if you need more info, please
ask me!!

Thanks in advance for all your help!!
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200706/1

Jun 15 '07 #3
Answers in-line
aaa2876 <am*****@hotmail.comwrote in
news:11**********************@p77g2000hsh.googlegr oups.com:
Hello everyone!

I am in the process of setting up a client contact database
for my office and I have run into a bit of a snag. The
database I have allows for one address per client but some of
our clients have two that we will use - one for home and one
for work. Problem #1 where do I add in the fields for a second
address - in the Contacts Table that is already established or
a separate Table?
You make a separate table for all addresses, and move the ones
already in the existing table. Some people also have in addition
to home and office, a ski chalet and summer cottage. You will
need the client id, direct address fields and a field to store
the addresstype 1=office, 2=home,3=whatever.

You should also break the phone numbers and emails into separate
tables. I have 5 phone numbers (office via switchboard, office
direct, home, cel, and fax. And seven email addresses.
>
We also would like to use these addresses to send out
Christmas cards, but some cards we would send to the home
address and some we would want to send to the work address.
Instead of creating a separate database for the Christmas card
labels I would really love to just use what I have.
Problem #2 If I have the fields available on one form to enter
two addresses, I would like to use a checkbox so that whoever
is entering the data can check off which address should be
printed on labels for our cards.
Again in your client table, save the addresstype number as a
which. I'd have the addresstype and addresstypeDescription in a
combobox, so people dont need to remember wether home is 1 or 2.

Problem #3 If I have checkboxes on the form, how do create a
query that would pull the address information that was checked
off?
again just filter on the addresstype.
>
Problem #4 How do I create labels if I have two fields for
Names, addresses, city, state, etc...??
You create a subform embedded in your main form. That takes care
of the label issue, This is because each address has an
addresstype so you can build the subform to show "home address"
or "office address" against the relevant row.

I am basically a beginner at Access, but I have taken some
courses and know my way around somewhat. If you have an answer
for me I would just ask that you be as specific as possible. I
hope I have asked my question as specific as possible, but if
you need more info, please ask me!!

Thanks in advance for all your help!!
Good luck.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 16 '07 #4

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

Similar topics

8
by: DylanM | last post by:
I have some checkboxes that are generated from the results of a database search. At the moment, the checkboxes are part of a table making up a form. Users are going through the form, clicking the...
8
by: Ralph Freshour | last post by:
I have multiple checkbox's created with an array name because I have many on the same web page - their names are like: frm_chk_delete frm_chk_delete frm_chk_delete frm_chk_delete etc. Here...
5
by: Paul Rubin | last post by:
Hi all. I'm wondering if there's a way to have checkboxes become selected without clicking the mouse. Perhaps if you rollover the checkboxes, they could toggle checked and unchecked? Or perhaps you...
9
by: Gary | last post by:
Hello, Is it possible to dynamically update a textbox with words chosen from a list using form checkboxes and javascript? Gary
1
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there...
5
by: @(none) | last post by:
I have a page which is a set of CheckBoxes generated daily and thus the number of Checkboxes changes each day. What I want to do is allow the user to select one or more checkboxes and the push a...
1
by: SC G | last post by:
Hi, I use a web application that has 120 checkboxes on it for me to select from before I submit a form. I have to select boxes in groups of 40 (1-40,41-80,81-120). Each submission generates a...
5
by: Deborah V. Gardner | last post by:
I would like to use "Yes" and "No" checkboxes on a subform. The problem is that when I click the Yes checkbox on the subform, all of the checkboxes are checked. Currently, I have a field...
4
by: TechnoAtif | last post by:
Hi ALL I have entered some array values using checkboxes into mysql database through a form. Next iam creating a searchpage where all those cateogories inserted through checkboxes has to be...
7
by: viki1967 | last post by:
I need one function javascript that: 1) when I enter in this htm page I see enabled only checkbox of categories A, M and T; checkboxes of microcategories all disabled; 2-a) If I select the...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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,...

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.