473,494 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Challenged trying to send info from different forms to a single record in MS Access

8 New Member
Hi all,
I have to submit a project in 2 days' time and am currently challenged trying to send information inputted into textboxes, radiobuttons and checkboxes present in different forms to a sigle row in Access. In other words, a series of forms are interlinked and the final form is supposed to send the information in all the forms (including itself) to an Access file. I'm not sure whether the connection I've created using the dataadapter in this final form can serve all of the forms... I hope I am not referencing the other controls in a wrong manner (I don't think so.. coz I'm referring back to Public Shared variables I've earlier declared)...
Please help!!!!
Dec 7 '07 #1
3 1247
debasisdas
8,127 Recognized Expert Expert
You have two options

1.Store the input of all the data in variable and insert at the end .

2.Insert only the first data from first form and keep on updating as you keep on moving to next forms.
Dec 7 '07 #2
Zabooster
8 New Member
You have two options

1.Store the input of all the data in variable and insert at the end .

2.Insert only the first data from first form and keep on updating as you keep on moving to next forms.
Thanx for the reply debasisdas. I understand the second option but I don't want to do that... I guess the first option is exactly what I'm doing, but I'm getting an error. Is it because the connection to the MS Access file should be made in every form I am using, coz I've only made the connection in the last form. I hope my question is clear. N thanx again for the reply...
Dec 7 '07 #3
Zabooster
8 New Member
Here is the coding:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form5_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         Dim pintrecords As Integer
  3.         Dim bndTemp As Binding
  4.         Dim frmPersonalInformation As New Form1
  5.         Dim frmAbilities As New Form2
  6.         Dim frmPersonalBackground As New Form3
  7.         Dim frmPersonalBackgroundContinued As New Form4
  8.         Dim frmPersonalBackgroundContinued1 As New Form5
  9.  
  10.  
  11.         pintrecords = odbdaApplicants.Fill(DsApplicants1)
  12.  
  13.  
  14.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldfullname")
  15.         frmPersonalInformation.FullName.DataBindings.Add(bndTemp)
  16.  
  17.  
  18.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldAddress")
  19.         frmPersonalInformation.Address.DataBindings.Add(bndTemp)
  20.  
  21.         bndTemp = New Binding("value", DsApplicants1, "tblapplicants.fldAge")
  22.         frmPersonalInformation.Age.DataBindings.Add(bndTemp)
  23.  
  24.  
  25.         bndTemp = New Binding("checked", DsApplicants1, "tblapplicants.fldMale")
  26.         frmPersonalInformation.Male.DataBindings.Add(bndTemp)
  27.  
  28.         bndTemp = New Binding("checked", DsApplicants1, "tblapplicants.fldFemale")
  29.         frmPersonalInformation.Female.DataBindings.Add(bndTemp)
  30.  
  31.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldUniversityMajor")
  32.         frmPersonalInformation.UniversityMajor.DataBindings.Add(bndTemp)
  33.  
  34.         bndTemp = New Binding("value", DsApplicants1, "tblApplicants.fldYearOfStudy")
  35.         frmPersonalInformation.YearOfStudy.DataBindings.Add(bndTemp)
  36.  
  37.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldGraduationYear")
  38.         frmPersonalInformation.GraduationYear.DataBindings.Add(bndTemp)
  39.  
  40.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldMobileCode")
  41.         frmPersonalInformation.MobileCode.DataBindings.Add(bndTemp)
  42.  
  43.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldMobileNumber")
  44.         frmPersonalInformation.MobileNumber.DataBindings.Add(bndTemp)
  45.  
  46.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldEmail")
  47.         frmPersonalInformation.Email.DataBindings.Add(bndTemp)
  48.  
  49.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldEnglishWriting")
  50.         frmAbilities.EnglishWriting.DataBindings.Add(bndTemp)
  51.  
  52.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldEnglishReading")
  53.         frmAbilities.EnglishReading.DataBindings.Add(bndTemp)
  54.  
  55.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldEnglishSpeaking")
  56.         frmAbilities.EnglishSpeaking.DataBindings.Add(bndTemp)
  57.  
  58.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldEnglishUnderstanding")
  59.         frmAbilities.EnglishUnderstanding.DataBindings.Add(bndTemp)
  60.  
  61.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang2")
  62.         frmAbilities.Lang2.DataBindings.Add(bndTemp)
  63.  
  64.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang2Writing")
  65.         frmAbilities.Lang2Writing.DataBindings.Add(bndTemp)
  66.  
  67.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang2Reading")
  68.         frmAbilities.Lang2Reading.DataBindings.Add(bndTemp)
  69.  
  70.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang2Speaking")
  71.         frmAbilities.Lang2Speaking.DataBindings.Add(bndTemp)
  72.  
  73.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang2Understanding")
  74.         frmAbilities.Lang2Understanding.DataBindings.Add(bndTemp)
  75.  
  76.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang3")
  77.         frmAbilities.Lang3.DataBindings.Add(bndTemp)
  78.  
  79.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang3Writing")
  80.         frmAbilities.Lang3Writing.DataBindings.Add(bndTemp)
  81.  
  82.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang3Reading")
  83.         frmAbilities.Lang3Reading.DataBindings.Add(bndTemp)
  84.  
  85.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang3Speaking")
  86.         frmAbilities.Lang3Speaking.DataBindings.Add(bndTemp)
  87.  
  88.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang3Understanding")
  89.         frmAbilities.Lang3Understanding.DataBindings.Add(bndTemp)
  90.  
  91.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang4")
  92.         frmAbilities.Lang4.DataBindings.Add(bndTemp)
  93.  
  94.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang4Writing")
  95.         frmAbilities.Lang4Writing.DataBindings.Add(bndTemp)
  96.  
  97.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang4Reading")
  98.         frmAbilities.Lang4Reading.DataBindings.Add(bndTemp)
  99.  
  100.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang4Speaking")
  101.         frmAbilities.Lang4Speaking.DataBindings.Add(bndTemp)
  102.  
  103.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldLang4Understanding")
  104.         frmAbilities.Lang4Understanding.DataBindings.Add(bndTemp)
  105.  
  106.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldMSOfficeSkill")
  107.         frmAbilities.MSOfficeSkill.DataBindings.Add(bndTemp)
  108.  
  109.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldIESkill")
  110.         frmAbilities.IESKill.DataBindings.Add(bndTemp)
  111.  
  112.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldMFSkill")
  113.         frmAbilities.MFSkill.DataBindings.Add(bndTemp)
  114.  
  115.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldSoftware4")
  116.         frmAbilities.Software4.DataBindings.Add(bndTemp)
  117.  
  118.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldSoftware4Skill")
  119.         frmAbilities.Software4Skill.DataBindings.Add(bndTemp)
  120.  
  121.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldSoftware5")
  122.         frmAbilities.Software5.DataBindings.Add(bndTemp)
  123.  
  124.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldSoftware5Skill")
  125.         frmAbilities.Software5Skill.DataBindings.Add(bndTemp)
  126.  
  127.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldExtracurricular")
  128.         frmPersonalBackground.Extracurricular.DataBindings.Add(bndTemp)
  129.  
  130.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldStrength1")
  131.         frmPersonalBackground.Strength1.DataBindings.Add(bndTemp)
  132.  
  133.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldStrength2")
  134.         frmPersonalBackground.Strength2.DataBindings.Add(bndTemp)
  135.  
  136.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldStrength3")
  137.         frmPersonalBackground.Strength3.DataBindings.Add(bndTemp)
  138.  
  139.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldWeakness1")
  140.         frmPersonalBackground.Weakness1.DataBindings.Add(bndTemp)
  141.  
  142.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldWeakness2")
  143.         frmPersonalBackground.Weakness2.DataBindings.Add(bndTemp)
  144.  
  145.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldWeakness3")
  146.         frmPersonalBackground.Weakness3.DataBindings.Add(bndTemp)
  147.  
  148.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldStrengthIdentification")
  149.         frmPersonalBackground.StrengthIdentification.DataBindings.Add(bndTemp)
  150.  
  151.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldChallenge")
  152.         frmPersonalBackground.Challenge.DataBindings.Add(bndTemp)
  153.  
  154.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldInternationalExperience")
  155.         frmPersonalBackgroundContinued.InternationalExperience.DataBindings.Add(bndTemp)
  156.  
  157.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldGoodLeader")
  158.         frmPersonalBackgroundContinued.GoodLeader.DataBindings.Add(bndTemp)
  159.  
  160.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldOrganizationUnderstanding")
  161.         frmPersonalBackgroundContinued.OrganizationUnderstanding.DataBindings.Add(bndTemp)
  162.  
  163.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldReasonForJoining")
  164.         frmPersonalBackgroundContinued.ReasonForJoining.DataBindings.Add(bndTemp)
  165.  
  166.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldTimeAllocated")
  167.         frmPersonalBackgroundContinued.TimeAllocated.DataBindings.Add(bndTemp)
  168.  
  169.         bndTemp = New Binding("checked", DsApplicants1, "tblApplicants.fldComputerWork")
  170.         frmPersonalBackgroundContinued1.ComputerWork.DataBindings.Add(bndTemp)
  171.  
  172.         bndTemp = New Binding("checked", DsApplicants1, "tblApplicants.fldFieldWork")
  173.         frmPersonalBackgroundContinued1.Fieldwork.DataBindings.Add(bndTemp)
  174.  
  175.         bndTemp = New Binding("checked", DsApplicants1, "tblApplicants.fldMeetings")
  176.         frmPersonalBackgroundContinued1.Meetings.DataBindings.Add(bndTemp)
  177.  
  178.         bndTemp = New Binding("checked", DsApplicants1, "tblApplicants.fldSales")
  179.         frmPersonalBackgroundContinued1.Sales.DataBindings.Add(bndTemp)
  180.  
  181.         bndTemp = New Binding("checked", DsApplicants1, "tblApplicants.fldMarketing")
  182.         frmPersonalBackgroundContinued1.Marketing.DataBindings.Add(bndTemp)
  183.  
  184.         bndTemp = New Binding("checked", DsApplicants1, "tblApplicants.fldOther")
  185.         frmPersonalBackgroundContinued1.Other.DataBindings.Add(bndTemp)
  186.  
  187.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fld4-8Months")
  188.         frmPersonalBackgroundContinued1.To8Months.DataBindings.Add(bndTemp)
  189.  
  190.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fld9-13Months")
  191.         frmPersonalBackgroundContinued1.To13Months.DataBindings.Add(bndTemp)
  192.  
  193.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fldAfterGraduation")
  194.         frmPersonalBackgroundContinued1.AfterGraduation.DataBindings.Add(bndTemp)
  195.  
  196.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fldNever")
  197.         frmPersonalBackgroundContinued1.Never.DataBindings.Add(bndTemp)
  198.  
  199.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fldFlyers")
  200.         frmPersonalBackgroundContinued1.Flyers.DataBindings.Add(bndTemp)
  201.  
  202.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fldInformationStands")
  203.         frmPersonalBackgroundContinued1.InformationStands.DataBindings.Add(bndTemp)
  204.  
  205.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fldFriends")
  206.         frmPersonalBackgroundContinued1.Friends.DataBindings.Add(bndTemp)
  207.  
  208.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fldInternet")
  209.         frmPersonalBackgroundContinued1.Internet.DataBindings.Add(bndTemp)
  210.  
  211.         bndTemp = New Binding("checkstate", DsApplicants1, "tblApplicants.fldOther2")
  212.         frmPersonalBackgroundContinued1.other2.DataBindings.Add(bndTemp)
  213.  
  214.         bndTemp = New Binding("text", DsApplicants1, "tblApplicants.fldOther3")
  215.         frmPersonalBackgroundContinued1.Other3.DataBindings.Add(bndTemp)
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.     End Sub
Dec 7 '07 #4

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

Similar topics

11
3557
by: HolaGoogle | last post by:
hi all, can you please tell me what i should do to avoid session timeout when displaying my database info in my asp form (DisplayUserDatabase.asp)??? ** actualy it does load and display the...
0
2713
by: Frances | last post by:
Hi All, I'm having a problem trying to add a record to a simple Access 2000 db (db is very similar to an address book but with more info than the usual address, phone, etc.). The database is...
1
12007
by: edself | last post by:
I have a form which displays a subform datasheet of information. I'd like to be able to quickly click on a particular record and open up another form showing more detailed information about that...
1
2003
by: Michael Eisner | last post by:
I have an MS Access 8.0 (Office97) program that has a form called FO-008 that I need to replace on several users computers in different locations without me being there doing it manually. I'm...
2
4004
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...
7
17856
by: Dica | last post by:
i've used the sample code from msdn to create an encyption/decryption assembly as found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp i'm...
2
2958
by: dBNovice | last post by:
Hi all! I have 3 separate forms: Tasks, Subtasks, and Elements. All 3 is related by TaskId and Subtasks and Elements are related by SubtaskID. In the DB after I add a task, I want to be able to...
17
7610
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the...
0
8638
southoz
by: southoz | last post by:
Good ay all , I'm fairly new to access(a little over 5 weeks now). Since I'v started I have picked up a lot of useful information from forums such as this and in doing so will share that information...
0
7119
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
6989
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...
1
6873
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
7367
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...
1
4889
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...
0
3088
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
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 ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.