Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 15th, 2008, 09:07 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Data Type

I want to make a radio button for Male and Female selection on a data entry form, i can create the boxes and place them but how do i link them to the male/female field?

Cheers

Reply With Quote
  #2  
Old May 15th, 2008, 09:16 AM
Toyman Toyman is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
I want to make a radio button for Male and Female selection on a data entry form, i can create the boxes and place them but how do i link them to the male/female field?

Cheers

Use an "Option Group" instead. This allow you to have a radio button for male and one for female. Only one object in this group can be enabled at one time. For example, if you click the female option, then the male option becomes disabled. Each object in the option group sets a value in which you define. This value is linked to the field in which you set.

Reply With Quote
  #3  
Old May 15th, 2008, 09:30 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Thanx dude, another thing ive just ran into is when i add a new record it loads the previous record details in the box, how do i make it so when i go to add a new record the box clears?

Reply With Quote
  #4  
Old May 15th, 2008, 09:47 AM
Toyman Toyman is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
Thanx dude, another thing ive just ran into is when i add a new record it loads the previous record details in the box, how do i make it so when i go to add a new record the box clears?

You would set that in the default setting of the option group

Reply With Quote
  #5  
Old May 15th, 2008, 09:58 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Not sure how you do that? I have selected all the options that i wish to be clear when the form loads, cant i just go into the properties and change a setting so they clear when the form is loaded?

Reply With Quote
  #6  
Old May 15th, 2008, 10:08 AM
Toyman Toyman is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
Not sure how you do that? I have selected all the options that i wish to be clear when the form loads, cant i just go into the properties and change a setting so they clear when the form is loaded?

Yes, go to the property setting for the option group and clear the default setting. During the setup wizzard for the option group, you probably did not noticed and set the default setting for the option group. You simply have to go back and blank out the default setting that was set. To access the property setting, just right click the option group box, not the objects in the box and select properties

Last edited by Toyman : May 15th, 2008 at 10:11 AM.

Reply With Quote
  #7  
Old May 15th, 2008, 11:19 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
All the details i have selected are not in an option group, they are just labels and txt boxes.

Reply With Quote
  #8  
Old May 15th, 2008, 12:42 PM
Toyman Toyman is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
All the details i have selected are not in an option group, they are just labels and txt boxes.

Ok, you kind of lost me. Did you create the option group as I mentioned at the beginning. If so, right click on the border that is your option group. This will enable the menu where you click on Properties.

Reply With Quote
  #9  
Old May 15th, 2008, 01:53 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
The option group is just around the mal/female part. The rest of the record has all the persons details from the previous time i entered data when i load the forum up.

Reply With Quote
  #10  
Old May 15th, 2008, 01:55 PM
don94403's Avatar
don94403 don94403 is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,848 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 18 h 41 m 42 sec
Reputation Power: 562
Quote:
Originally Posted by Toyman
Ok, you kind of lost me. Did you create the option group as I mentioned at the beginning. If so, right click on the border that is your option group. This will enable the menu where you click on Properties.

I believe he is not talking about his M/F field anymore, he is asking the general question of why a form shows data from a previous record.

This is a property of the Form. A bound form can be set to open in either Edit or Add mode. If you always want it to open to a new, blank record, and you are opening it, say, in the onClick event of a button, using VBA code, you will probably have a line somewhat like this in your code:
Code:
DoCmd.OpenForm "myForm",acNormal,,,acFormEdit
which you will want to change to
Code:
DoCmd.OpenForm "myForm",acNormal,,,acFormAdd
__________________
Experience is the thing you have left when everything else is gone.

Reply With Quote
  #11  
Old May 16th, 2008, 07:26 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
I see where you are coming from but i cant find that line in my code. Here is a screenshot

http://i68.photobucket.com/albums/i4/Studders1/Form.jpg

Reply With Quote
  #12  
Old May 16th, 2008, 07:42 AM
AOG123's Avatar
AOG123 AOG123 is offline
Registered Hero
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2006
Posts: 975 AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level)AOG123 User rank is General 5th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 14 m 43 sec
Reputation Power: 1326
Quote:
Originally Posted by Database_N00b
I see where you are coming from but i cant find that line in my code. Here is a screenshot

http://i68.photobucket.com/albums/i4/Studders1/Form.jpg


I'm a little lost,.. are you saying that when you go to a new record the options you have selected on the previous record remain?

You might want to explain from the beginning whats happening here,

Reply With Quote
  #13  
Old May 16th, 2008, 08:43 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
When i go to add a new record, the form loads and the details from the previous entry and still there. How do i change this so when i load the add record form the boxes are empty?

Reply With Quote
  #14  
Old May 16th, 2008, 09:02 AM
Toyman Toyman is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 951 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 7 h 18 m 34 sec
Reputation Power: 258
Quote:
Originally Posted by Database_N00b
When i go to add a new record, the form loads and the details from the previous entry and still there. How do i change this so when i load the add record form the boxes are empty?

The command in your link refers to a click event and not to a on load event. In your present post, you refer to the form "loads". Are you saying that when you open the form the form that loads has records from previous entry. If this is the case, then what happens is that when the form loads, it will display all of your records, usually default to the first records.

Your code refers to a click event. Therefore, I assume you have a "add new record" button in your form. When you click on that button, does the form display a new record where all the fields are blank ready for new entry? Further, is the "add new" button in the same form as the form in which you will be adding new records?

Last edited by Toyman : May 16th, 2008 at 09:05 AM.

Reply With Quote
  #15  
Old May 16th, 2008, 09:05 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Right i think this problem is being over-analysed lol.

Im in my database
I click Add_Student form
The form opens
the details of a student are already in the boxes

How do i set it so that when i open the form the boxes are clear.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Data Type


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
Stay green...Green IT