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

Can't use textbox in form to populate a table

Forigive me for posting something which probably has a simple solution, but I can't find the solution and it's giving me fits. Here's my issue. I have two tables. One is simply a list of customers which is more or less static. I use the data from that table to populate a field in the second table, which is a list of all transactions. I use a form to enter the data into the second table. However, when I use a combo box in the form to choose data from the first table and use that data to populate the second table, it inserts the data into the second table not as a customer name but simply as a single digit number. I imagine it's simply a problem with properties but I have been unable to locate the specific problem. Could someone please help?
Oct 9 '07 #1
2 2375
ADezii
8,834 Expert 8TB
Forigive me for posting something which probably has a simple solution, but I can't find the solution and it's giving me fits. Here's my issue. I have two tables. One is simply a list of customers which is more or less static. I use the data from that table to populate a field in the second table, which is a list of all transactions. I use a form to enter the data into the second table. However, when I use a combo box in the form to choose data from the first table and use that data to populate the second table, it inserts the data into the second table not as a customer name but simply as a single digit number. I imagine it's simply a problem with properties but I have been unable to locate the specific problem. Could someone please help?
It's probably a problem with the Column property which you can use to refer to a specific Column, or Column and Row combination, in a multiple-column Combo Box or List Box. The Combo Box is simply returning the value of the Bound Column which is typically, but not always, the 1st Column (Column(0)). To return the value of another Column, simply refer to the Column Number - 1. For example, if a Customer's Name is the 4th Column in a Combo Box and you want to transfer this value to say a Text Box named txtCustomerName on the active Form:
Expand|Select|Wrap|Line Numbers
  1. Me![txtCustomerName] = Me!cboComboName.Column(3)
Oct 9 '07 #2
Thank you for the quick reply and the advice. That was exactly the problem. Most appreciated.
Oct 9 '07 #3

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

Similar topics

1
by: Paul M. Frazier, Ph.D. | last post by:
I am writing a user information update page and I populate the form on Page_Load with the current values of the user's name, etc. When I change the text in one of the textbox controls (e.g.,...
4
by: Rich | last post by:
Hello, I have successfully created an oledbconnection (oleconn) to an Access mdb file along with an oleaDBdapter (oleda) and a dataset (ds1). If I loop through the dataset For i = 1 to 10...
2
by: MLH | last post by:
I would like to populate a table with the following information: tblPropertySettings - the GotFocus property setting string - the LostFocus property setting string I'd like to document...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
4
by: andymcintosh85 | last post by:
Hi, I have a textbox in a form which is being automatically populated form a bound column in a combobox on the same form. What i would like to do is to populate a field in a table based on the...
1
by: tommy.tashjian | last post by:
Hi, I have a datagrid with a textbox column that needs a lookup table. Now, I was going to just use a dropdownlist instead of the textbox, but that won't fly here. So, what I need to know, is it...
3
by: hawaiijeff | last post by:
I have a form with four textboxes: A, B, C and D. Textbox A contains a date value. Textbox B is entered by the user, at which point the program locates a value in a table and uses that value to...
4
gcoaster
by: gcoaster | last post by:
Hello! I have a dilemma I have a form that is bound to a table = tblCALLDETAILS I have a field in the table that is on the the form called = email, that is a textbox txtClientEmail ...
8
by: mlwerth | last post by:
Dear Access Group: This is the most basic and most embarrassing of questions, but I cannot find where to change the data type of a text field that I have in Access 2003 to a number field. I've...
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: 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
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...
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
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.