Solved

VB and Access

Posted on 2002-07-22
2
134 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now