Solved

VB and Access

Posted on 2002-07-22
2
136 Views
Last Modified: 2010-05-02
I need to know what code I need to put in that allows the user to enter a new name and phone (the key) on the main form and have the new name and phone number be added to each additional Access table that is used when the user progresses to other forms in the vb program.  I am using ado data controls in the program.

Let me know if I need to go into more detail.
0
Comment
Question by:jclaire
2 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7170000
You could save it in global variables and everytime you add, modify a record, add those values in corresponding fields.
Also, avoid usege of data control.
0
 
LVL 1

Accepted Solution

by:
Mahdi Mansour earned 50 total points
ID: 7171072
just define a new recorde set let say Tmp, and set it to the spicific table and then :

tmp.addnew
tmp("name")=txtname.text
tmp("Phone")=phone.text
tmp.update

0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 106
passing a value with stream reader AFTER a ";" 3 67
Visual Studio 2005 text editor 10 38
how to Classify of email (pdf attachments) 7 36
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question