473,403 Members | 2,071 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,403 software developers and data experts.

Writing to a Yes/No Data Type from a Form Combo Box

1
Hello, I'm new to this forum and Access in general and am using Access 2010. So please forgive me if I'm too vague in critical areas or don't have the question format quite right.

I've created a form ("frmJumpAdd", and I'm sorry but I'm not sure how to determine whether the form is Datasheet, Continuous or Single View) that has a combo box ("cbxJumpAdd") where I set the options to "Yes" or "No" (via form wizard). When the user selects one of these I'd like the value to be written to a table field "Jump_Add" (which has the "Yes/No" data type) in "tblPMaction". Also, I'd like to set the default option in the Combo box to "No", so the user has to actively select "Yes".

Questions:
1. Is it possible to write to the "Yes/No" data type?
2. Can this be done with a combo box or is there a better tool?

Thanks in advance,
-Nick
Jan 3 '14 #1
2 2319
zmbd
5,501 Expert Mod 4TB
Nick:
Normally, we would only address one topic in a thread at a time; however, you need to have some basics:

1)View:
- Open the form in design view:
- Right click an empty space on the form
- Select show properties from the pop-up
- Property Sheet opens (PS)
- Dropdown list in the PS, select form
- Format Tab
- Property [Default View]

1a) By default, most forms open in what is called a "single form" view where only one record's information is displayed at a time in the layout given in the design of the form.
1b) Continuous form, you will see multiple records in the view layed out as the form. Depending on the size of the detail section/header/etc... you may see the form repeated within the window or not
1c) Datasheet looks alot like the table view or a spreadsheet.

(do not close PS yet)

2) More than likely, if you used the Wizard, your control is already what we call "Bound" to the table field; thus, your selection is already being written to the table; however, this is not a given as there are some choices that you could have made that would alter this effect.

- PS - Dropdown list
- Select the name of your combobox control
- Data Tab
- property [Control Source]
This will tell us if and where the data you are selecting is being stored. It must be a field in a table, usually the field is the only thing shown if the form is bound to either a table or query.
>>>Check this value. if set then your question is answered as this is where the value is being stored. No further action need be taken on your part.
If not set, then let us know.

- property [Record Source] = this is either a static list of values or a table/query. This is NOT the same as the [Control Source].

- property [Bound Column] = this is the value from the [Record Source] that the control will either have if unbound or will store to the [Control Source]

Then there are other settings as well - new thread or better yet my list of tutorials. (^_^)

--- Having very little or no training in VBA/Database/Acces design will in the long term hinder your ability to obtain the desired results and will prove to be frustrating as we work thru your questions now and in the future as we must assume that you have the basics undercontrol. I will PM-forward you my list of standard basic sites for you to work thru... these are the essentials/minimums that you should have a mastery of before getting into the Deep-End of the pool.
Jan 3 '14 #2
zmbd
5,501 Expert Mod 4TB
>>Opps, didn't see the default value request:
that is set in the PS for the control
-Data Tab
-proptery [Default Value]
This value is usuall empty, thus the control will not have a value (neither yes or no) for a new record.
You can set this to "No" and the new record will enter a default of "No" in the field for a new record once it is saved.


Once again, please note, normally only one topic per thread; however, these answers are to some degree realated. (^_^)

BOL
Jan 3 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Roberto | last post by:
I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post" enctype="multipart/form-data" WIDTH=100%> <INPUT Type="file"...
2
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5...
1
by: Alex Wisnoski | last post by:
Access 97SR2-I am trying to create a Job Position data entry form based on a table. The form has 15 fields on it. I want to use a combo box to look in the table and see if the position number...
2
by: Chicken Kebab Abdullah | last post by:
Does anyone know why I get the error 3464 Data type mismatch from the following code. I have a form with a combo(to choose a consumable) and 2 list boxes on it. list on left is all printers...
2
by: edworboys | last post by:
I have designed a data entry form with a number of fields and a sub form. The first field (Country) is a combo box and the user selects a country. This, in turn reduces the number of options in the...
1
by: Alex.Wisnoski | last post by:
I have a data entry form with a combo box to look up an entrant's name. If the name is already in the table then it pulls up the record and that part of the form works fine. If the name isn't in...
0
by: Keith | last post by:
A2003, XP Pro SP2 I have a combo box set to look up field names from a table. I want to be able to get the data type of the field chosen by the combo and assign that type to another combo box...
2
by: filbennett | last post by:
Hi Everyone, I'm generally unfamiliar with Access form design, but have programmed Cold Fusion applications for a couple of years. I'd like to build a data entry form in Access that allows the...
1
by: Richard | last post by:
Very typical normal data Table One ------ One.OneID (PK) One.Name One.Description One.TwoID (FK) One.ThreeID (FK) ....
0
by: sarvmardan | last post by:
how to open a report in access containing filtered data using two combo boxes on form and a button to click. let i have two fields and other is . two comboboxes are combo11 and combo9. plz post...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.