473,408 Members | 1,809 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,408 software developers and data experts.

Trouble With saving fields brought in using combo box.

Ok the complete story. I have a Contact Table, Query and Form, that
are used to input
and store the contact info for customers. They have FirstName, LastName

and Address as the primary key fields to keep out duplicates. I am
trying to put a full name box on the query, that uses the FirstName,
LastName and Middle Initial and puts them together to form a full name.
That I have so far. On my order database(consisting of a master table
with all the fields for order details, a master query that pulls all of
those fields into the query, and a form in which the query fields are
filled out. I made a combo box with the wizard that gets the full name
from the contacts query and stores it into B1(buyer1) Full Name field
in the Master Query. The trouble is that when it does this I want it to
pull the separate fields from the Contacts query(FirstName, Middle
Initial, LastName, etc, into separate B1 fields(named B1 First, B1
Middle Initial, B1 Last, etc.). I want to do this same thing for a
Buyer2 and 2 sellers, but getting their information from the contacts
query/table. Any Ideas????? i keep getting it to pull the full name,but
when i try relating the two queries to get the data, it wont allow me
to change the name in the combo box.
Thanks ahead of time for any help you can provide.

Jun 16 '06 #1
3 1841
Not clear what you are trying to do, but it sounds like you have a
master table and a detail table and you want to base something on the
data from these tables - a combobox? And the problem you are having is
in retrieving the desired dataset from these tables.

Based on what I understand about your problem, I would suggest you try
to create a query where you join your master and detail tables and see
what the result set is. If the problem is that you cannot join the
master and detail tables then the problem would be that you are trying
to mix apples with oranges - in which case the problem would be that the
data tables are not related - or not related correctly.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jun 16 '06 #2
I have a master order table which has a bunch of details about the
persons perchase. I need to pull a persons information from the contact
information query and insert that information into the similar fields
on the master order table. I use a combo box on the master order form,
to look up the persons full name from the contacts information query
and then save that full name to one of the following fields(B1 Full
Name, B2 Full Name, S1 Full Name, or S2 Full Name). However, I need it
to bring in the rest of the fields that correspond with that full name
and put them in the similar fields in the master order form and query.
I tried to relate the two, however, it will not let me change the
persons name in the combo box if i relate the B1 Full Name(on the
master order query) and the Full Name(field on the Contact information
query). Any ideas. they are the same data types and should work but
dont.
Rich P wrote:
Not clear what you are trying to do, but it sounds like you have a
master table and a detail table and you want to base something on the
data from these tables - a combobox? And the problem you are having is
in retrieving the desired dataset from these tables.

Based on what I understand about your problem, I would suggest you try
to create a query where you join your master and detail tables and see
what the result set is. If the problem is that you cannot join the
master and detail tables then the problem would be that you are trying
to mix apples with oranges - in which case the problem would be that the
data tables are not related - or not related correctly.

Rich

*** Sent via Developersdex http://www.developersdex.com ***


Jun 16 '06 #3
You should be able to set the Row Source of your Combo Box to a Query that
returns and displays the full name, but also has columns for first, middle,
and last names. You refer to those using the Combo Box's Column property
(which is zero based, so if you have 4 columns they are Column(0),
Column(1), Column(2), and Column(3).

You can't automatically store the selected value for more than a single
column by using the Combo's Control Source, so you'll have to do it with a
little VBA code, and possibly some Controls with their Visible property set
to False/No.

Example:

Me.cboPersonsName.Column(1)

Larry Linson
Microsoft Access MVP
<fs*************@yahoo.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I have a master order table which has a bunch of details about the
persons perchase. I need to pull a persons information from the contact
information query and insert that information into the similar fields
on the master order table. I use a combo box on the master order form,
to look up the persons full name from the contacts information query
and then save that full name to one of the following fields(B1 Full
Name, B2 Full Name, S1 Full Name, or S2 Full Name). However, I need it
to bring in the rest of the fields that correspond with that full name
and put them in the similar fields in the master order form and query.
I tried to relate the two, however, it will not let me change the
persons name in the combo box if i relate the B1 Full Name(on the
master order query) and the Full Name(field on the Contact information
query). Any ideas. they are the same data types and should work but
dont.
Rich P wrote:
Not clear what you are trying to do, but it sounds like you have a
master table and a detail table and you want to base something on the
data from these tables - a combobox? And the problem you are having is
in retrieving the desired dataset from these tables.

Based on what I understand about your problem, I would suggest you try
to create a query where you join your master and detail tables and see
what the result set is. If the problem is that you cannot join the
master and detail tables then the problem would be that you are trying
to mix apples with oranges - in which case the problem would be that the
data tables are not related - or not related correctly.

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Jun 17 '06 #4

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

Similar topics

2
by: Cro | last post by:
Dear Access Developers, I am developing a form with 'default view' set to "continuous forms". I am suffering with a problem I can't yet see a solution too. Each record has many fields. Two...
1
by: luanhoxung | last post by:
hi !! in my continuous form view, i have a decription field, it is not bound any fields of the form. it decribes for my combo box. my trouble is: when i choose my combo box for new record, the...
5
by: deekay | last post by:
I want to allow users to resize and reposition columns of a datasheet but for a prompt to be brought up and only the layout only to be saved if they select "save changes". This is the way it works...
3
by: chris | last post by:
I'm having trouble making this work: I have an unbound form with one unbound combo box field on it. The combo box's row source type is a query that has a username field and a security code...
8
by: Michael R | last post by:
Dear users and experts, An unbound combo box in my form is responsible for changing a city name for an update query that creates a temprorary table which the form uses as its record source. In...
27
by: wideasleep | last post by:
Hello, I have a form that has a combo box that populates other fields. This works great but it doesn't save that information in the table where those fields are coming from. The only one that's...
10
by: ARC | last post by:
This is mainly a speed question. In this example: I have a QuotesHdr table that has a few memo fields. If these memo fields are used extensively by some users, and if their are a large number of...
1
by: omar.norton | last post by:
I am trying to create a from with a series of combo boxes that each query a different field (called Specific01, Specific02 etc., except the first field which is called Condition). Each combo box...
3
by: Turflayer | last post by:
Hi, I'm very new to Access, so I hope somebody may help as I've been unable to locate a similar query elsewhere on the forum... I have created a database that is populated via a main form. Part of...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.