473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

relational database: how to make a related record automatically

I have the following problem.

I have two tables that are related. One tabel is contacts and the other is
projects.

Both tables are filled via a form. On the contacts-form i have a button "add
project". Then the project forms opens so i can fill in the data for this
specific project. But in the project form i always have to choose to wich
contact the projects belong.

Is there a way to make let the contatc be chosen automatically. In other
words: is it possible to make a button "add project" so that i can only add
projects for the specific contact i was working in?

Moch
Nov 13 '05 #1
1 1236
"Moch" <mo**********@wanadoo.nl> wrote in
news:41**********************@news.wanadoo.nl:
I have the following problem.

I have two tables that are related. One tabel is contacts and
the other is projects.

Both tables are filled via a form. On the contacts-form i have
a button "add project". Then the project forms opens so i can
fill in the data for this specific project. But in the project
form i always have to choose to wich contact the projects
belong.

Is there a way to make let the contatc be chosen
automatically. In other words: is it possible to make a button
"add project" so that i can only add projects for the specific
contact i was working in?

Moch


In the code that opens your projects form, you need to put a
reference to the primary key of your contacts form. That is the
final parameter of the docmd.openform called openargs.

In the projects form you need to take that openargs parameter and
use it to preset the relevant textbox on the form.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: F | last post by:
Hi all I have some difficulty to manage FSO with Database. Actually I am building a tree view of user files and folders. I have saved record of each file and folder with its parent id in a...
49
by: Mike MacSween | last post by:
I frequently hear that there isn't a commercially available dbms that fully implements the relational model. Why not? And which product comes closest. Mike MacSween
3
by: cassandra.flowers | last post by:
I'm designing a database because I have to do it for the preperation work for my A-Level ICT exam. The database is for a building company. It has to store information on building projects...
4
by: amywolfie | last post by:
I have a curious mission: I converted an Excel file to a relational Access 2002 database, and now I have to export data back to IT as a FLAT .csv file. I know how to create many records from...
1
by: Tim Fierro | last post by:
Hello, I have had many years using flat file databases (File Express from way back) but am now at a company where a relational database is needed and would carry us into the future. Since I...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
6
by: Shwetabh | last post by:
Hi, I have a very simple question. In what cases are relational databases necessary? Are they really necessary in cases where only a single type of query is to be performed based on one unique...
7
by: shahram.shirazi | last post by:
Hi all, This is a very stupid question, but it has been years since i've touched databases so any help will be very appreciated. I am designing a school registration database which also serves...
4
by: Tea Maker | last post by:
Hi, I have a relational database. Pretty simple I created it just for learning from it. I have two tables "Categories" and "Subcategories". I have a field called "CategoryID" in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.