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

Transferring Data between Forms

Hello All,

I have a tricky problem. I have two forms in MS Access where the user enters information.

The first form links to a table with only one record where data is entered via text boxes. Lets say the user enters "Red", "Blue", "Green" and "Yellow". No problem here.

Now on the second form, the user needs to select some of the information previously entered on form 1 by means of drop-down combo boxes, where these selections from part of seperate records in another table. Lets say on this form he can enter "Cars" and then make a colour selection for record 1. For record 2, he types "Boats" and then makes another colour selection.

I need to find a way of populating the combobox either with a suitable query linked to the combobox record source, a query in VB coding to add to the combobox or maybe by populating a third table that links to the combobox row source. I've tried all manner of tricks and cannot get the (horizontal) single record data into a (vertical) multiple record format.

Anyone with any ideas? Thanks!!
May 7 '07 #1
6 1682
MMcCarthy
14,534 Expert Mod 8TB
You have posted this question in the Articles section. I am moving it to the Access forum.

ADMIN
May 7 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
Sorry if this sounds glib but it shouldn't be a single string record from what you say. Why have you entered it that way? If you then select it as a foreign key on another record it won't work.
May 7 '07 #3
My appologies for the posting to Articles - I only saw it once it was too late.

There are basically three reasons why I'm forced to enter the data into one record in Table A:

1) That single record relates to information for only one (quotation) project at a time. If the user wants to work on another project, he opens a new database.

2) Entering the data as multiple records would work fine and would enable me to source the information for the ComboBoxes on Form B, but I have no control over how the information is shown on the form, because the Form Design View only shows the one, common record link and I need to re-arrange all the Text Boxes to suit my required layout. Unfortunately, they're not in order from top-to-botton, left-to-right. I am able to do this with a single record because all Text Boxes are available in Design View. Maybe there is a way to custom-place the fields for multiple records?

3) The limitation of only being able to link one table to a form. If it would have been possible to link a second Table to Form A, then the data required for Form B would be available in its own table.

I'm sorry it sounds so complicated, but it's not really. I'm trying to achieve a simple objective, but the way Access does things is complicating the issue. Maybe I could e-mail you a screen dump so that you could see what I'm trying to achieve?
May 7 '07 #4
.............................yawn................. ....................
May 9 '07 #5
JConsulting
603 Expert 512MB
.............................yawn................. ....................
yawn indeed,

so you have a table looks like this

Red | Yellow | Green | Blue

and you want a combo box on form 2 to look like this based on that entry

Red
Yellow
Green
Blue

is that correct?

Make sure your Rowsource type is value list. column count is 1

Expand|Select|Wrap|Line Numbers
  1. Me.MyCombo.RowSource = DLookup("Field1","YourTable") & "; " & _
  2.                        DLookup("Field2","YourTable") & "; " & _
  3.                        DLookup("Field3","YourTable") & "; " & _
  4.                        DLookup("Field4","YourTable")
J
May 10 '07 #6
NeoPa
32,556 Expert Mod 16PB
.............................yawn................. ....................
Please do not express impatience at the service you're given.
Our experts and members offer their time voluntarily and do not deserve to be treated with impatience by those who hope to benefit from their efforts.

MODERATOR.

PS. A bump is perfectly acceptable after a wait of 24 hours, but your phrasing of it is not.
May 10 '07 #7

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

Similar topics

1
by: r_burgess | last post by:
I am looking for some guidance on transferring data between two pages in my ASP.net Web app (intranet). I have a form that will have a button and a text box on it (among other controls of course)...
2
by: ryan.d.rembaum | last post by:
Hello, I am trying to build a standardized login screen that several different web application could use. What I would like is for the login screen to detect where the user has come from. ...
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
1
by: Asaf | last post by:
Hi, I am developing a windows forms client application that will send a large XML data to a web server using Web Services. I saw this article http://www.codeproject.com/soap/MTOMWebServices.asp...
3
by: JayD | last post by:
(Not sure whether it is a general aspnet problem or a specific security problem, hence posting it in 2 groups). This will solve for us a number of problems. I have developed a website on my...
0
by: ControlHead | last post by:
Hello All, I have a tricky problem. I have two forms in MS Access where the user enters information. The first form links to a table with only one record where data is entered via text boxes....
1
by: iworkedatsubway | last post by:
What is the best way to send / receive data between an ASP.NET application and a windows forms application running on the same computer? I want users to be able to go to an ASP.NET page and based on...
1
by: =?Utf-8?B?Z29sZGVucmF0ZQ==?= | last post by:
Hi everyone, I have a client who wants a solution for the following problem. I'm not sure that its possible but I'll ask anyway. The client has joined godaddy's reseller plan. They've provided...
3
by: angusfreefa | last post by:
Dear All, I am facing a problem of transferring data between 2 tables within the same database. I set up 2 tables. The first table is the permanent table (oos_table) for saving records. the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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,...

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.