473,508 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access form combobox default value inappropriately shown as 0 and -1

1 New Member
0


I am new to access, and have a Database design (to see old records and to enter new records as well) in which there are 3 forms updating a single table. In table I have set many fields as combo box with value list, and default value (Text), for example Yes and No with defalut value as Yes, Normal and Abnormal with default value as Normal etc. I first open a form for client information, enter new record, save it and open another form (filtered to show record for that particular client) to enter further record for that client. The second form returns default values in combobox in numbers, 0 in some fields and -1 in other fields.I never put those numbers as default values. I want the default text in form fields that I have set in table field. I could not find the way. Can u please help.
Dec 11 '20 #1
1 2010
isladogs
457 Recognized Expert Moderator Contributor
Your combo has a boolean (Yes/No) field as its bound column.
True = -1 & False = 0
In design view, go to the property sheet. ]
First look at the row source for the combo and check which fields are included. Also the value of the bound column.
Now look at the Column Count & check it matches the fields in the row source.
Also check the column widths. To hide your boolean column, set its width to 0. For example if you have 3 columns and only want to show the second one, set the column width to e.g. 0 cm;2 cm;0 cm
Dec 11 '20 #2

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

Similar topics

3
1285
by: James Bond 007 | last post by:
Given the following example, I want "Jane Doe" to appear when the user first views the form, and when he leaves it blank: // ---------------- <FORM .... > Name: <INPUT TYPE="text"...
3
5308
by: Todd D. Levy | last post by:
I have a number of Drop Down Combo Boxes where users select a country; 99% of the time the selection will be "United States". I want to use VBA code in the New Record Event to populate this field...
2
1292
by: Shiye | last post by:
Help...! Hi all, Does any of you know how can determine the default value of a filed to be taken from another feild (already filled) in the same row of the table??? Thanks, Shai
2
3604
by: Fred | last post by:
Hi, I am having a problem setting a combobox value in code on form load using comboBox.SelectedValue method. The code below when debugging show the combobox equal to an undefined value. The...
6
8505
by: carmela_wong | last post by:
Hello all, I am trying to set the default value of a combo box to "USA" which does not work although I have entered this in the Default Value property of the control. The combo box shows the...
1
24889
by: andrewbda | last post by:
I have a combo box in a subform that will have different options depending on values in the main form. I would like the combo box to default to the first value in the list. Any help would be...
0
796
by: rashima | last post by:
I have 2 access forms, In 1st form I am displaying reportname from my table then I will select one record from 1st form and will press next button now I want to display this reportname onto next...
3
2446
by: Joe Y | last post by:
In Access 2007, I have a form called OrderHeader that displays order details. The record source is based on table DBA_Order. When user clicks a combo box to select customer no, I want the form to...
2
1594
by: neelsfer | last post by:
I manage to get my code working on the main form when i add a combobox to it, but it is does not set the default value in a tab control for the same combobox, based on a filtered query. I would like...
7
1796
by: wespw1 | last post by:
Boy I cant believe I have not been on these forms for a long time. But, I found this site again. This site has not let me down before and so here goes it again. I have a POS Access 2003 POS...
0
7228
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
7128
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...
0
7332
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
7393
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
7502
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
5635
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
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.