I am trying to update two different tables in an access database using a form?
-
What I have are two different tables. One called Names with two fields (NameID and Name) and the other called Nation with three fields (NationID, NameID and Nation). I dont know why they are split like this but they are and I am not allowed to change them. I have a form with two txt fields (one for name and one for nationality). When I hit the submit button I would like for the name which is in the text field to populate in the Names table and the Nationality to populate in the Nation table with the corresponding NameID. What I am trying to accomplish now is to just update the Names table with the name in the text box. Once I get that down I can manage getting the Nation table updated. My problem is that I dont even know how to begin to create a connection to the database and query the database to update the table. It is pretty simple but I just do not know where to begin. By the way, I am trying to write a VB code using the 'Build Event' feature on my Submit button.
-
Answer:
It is not clear to me - are you using Access only or are you connecting to Access through VB.net or VB6?
Chris P at Yahoo! Answers Visit the source
Related Q & A:
- How To Connect Two Different Network Segments Using A Switch And A Router?Best solution by Super User
- How to submit a form using httpurlconnection?Best solution by stackoverflow.com
- How to connect to a Pervasive Database using javascript?Best solution by Stack Overflow
- If I have a form, such as an application, how can I fill it out using my computer?Best solution by answers.yahoo.com
- How do I file taxes when I worked in two different states?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.