473,669 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transferring Data between Forms

4 New Member
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 1694
MMcCarthy
14,534 Recognized Expert Moderator MVP
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 Recognized Expert Moderator MVP
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
ControlHead
4 New Member
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
ControlHead
4 New Member
............... ..............y awn............ ............... ..........
May 9 '07 #5
JConsulting
603 Recognized Expert Contributor
............... ..............y awn............ ............... ..........
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,568 Recognized Expert Moderator MVP
............... ..............y awn............ ............... ..........
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
1609
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) When I click the button, I want to open a contacts page which is already built and functional. From there I want the user to select a contact (using the search and browse tools on that page) When the user selects one of the contacts, I want the...
2
1831
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. Based on this, code unique to the site being accessed would run, along with all the code common to user validation. The first issue I have run into is: Redirect does not appear to pass information that can be accessed by
15
5069
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 form2....and there the data that i key in form1 will appear to form2 in textbox2 Thanks
1
2065
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 for uploading files using MTOM. Is there any way to transfer large data from the client to the web server using WSE3 with chunks but instead of using files, using the memory?
3
1675
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 local machine (part of a LAN) using Visual Web Developer, with ASP.NET 2.0. Backend is a SQL Server 2000 database. All queries and webforms work beautifully on my local machine (file system web project). However, when I copy this website to a...
0
839
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. 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...
1
1595
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 their input, have the windows application that is also running on that server perform different actions. Any ideas?
1
1425
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 him with a complete working site that can be viewed here: https://www.securepaynet.net/gdshop/rhp/hottestreseller.asp?prog_id=438541&ci=3271& Let's call this site 'godaddy's site'
3
2668
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 other table is a temp table (oos_table_temp) for storing records which all data would be deleted after the data transferred to the permanent table. below is the code I am currently using. Dim strNewTable As String Dim strOldTable As String
0
8465
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8383
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8809
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8588
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7407
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6210
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4206
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1788
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.