473,466 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MS ACCESS, Saving data from a pop up form

Hi, i have created a database to store contractors invoices. I have
approximately 9 tables and 3 forms. One of my forms(frmContractors)
has all the contractor details and this also contains a sub form which
includes cost details. In the sub form i have included a button which
activates a pop up form where additional details can be entered. I
would like the new data being entered in to the pop up form to be
saved so that it can be viewed in the sub form as the pop up form is
just a blank version of the sub form.

Sep 17 '07 #1
3 4053
On Sep 17, 4:25 am, chuch <d_man...@hotmail.comwrote:
Hi, i have created a database to store contractors invoices. I have
approximately 9 tables and 3 forms. One of my forms(frmContractors)
has all the contractor details and this also contains a sub form which
includes cost details. In the sub form i have included a button which
activates a pop up form where additional details can be entered. I
would like the new data being entered in to the pop up form to be
saved so that it can be viewed in the sub form as the pop up form is
just a blank version of the sub form.
It sounds like you want to add record 2 while you are editing or
viewing record 1. Then you want record 2 to show instead of record 1
after record 2 has been added.
The best way to handle edits is to use the same screen for editing as
you would for adding. The calling routine determines which is being
done, and the editing/adding form is opened with the appropriate
parameter.
How are you doing the editing? How are you selecting which record to
edit? Are you using VBA? How are you programming the record append?

Sep 17 '07 #2

Well, My blank(pop up) form is to enter cost details which is a blank
version of my sub form. I would like to add as many records as
possible to the sub form, but when viewing the main form, you can
naviagte through the contract details and one contract can have many
different costs(subforms).

Sep 20 '07 #3
On Sep 20, 4:04 am, chuch <d_man...@hotmail.comwrote:
Well, My blank(pop up) form is to enter cost details which is a blank
version of my sub form. I would like to add as many records as
possible to the sub form, but when viewing the main form, you can
naviagte through the contract details and one contract can have many
different costs(subforms).
Is your subform on the main form a continuous form allowing you to see
multiple records with a scrollbar? Is there an Add or Save button on
the cost detail entry form? If the answer to the first question is
yes, and the answer to the second question in no, then I would setup
the code in the cost detail entry form to add the record manually with
a Save button. I would not connect the form to data, or use the
wizard. I would add what edit controls were needed and create
functions to read the data from the screen, write the data to the
table, and clear the screen. If the screen was also to be used for
editing existing cost detail, then I would add functions to read the
data from the table, and write the data to the screen. A previous
post (search on OldPro and WriteRecord) has examples of these
functions.

Sep 20 '07 #4

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

Similar topics

28
by: Lee Rouse | last post by:
Hello all, This is going to be a rather lengthy "question". I have an Access 2k database, separated front end/back end. Front end copies are on about 30 workstations and used frequently during...
3
by: Christopher Koh | last post by:
how do you stop Access from saving any changed data in your tables and queries? like i just add or change data on the table/query tables,then click on X (exit)because i have no intention of saving...
5
by: Tara via AccessMonster.com | last post by:
Hi there - I'll do my best to explain my dilema. I'm using Access 2000. In this database, there is one table with about 150 columns of information, and 206 rows. There are numerous queries and...
18
by: Andre Laplume via AccessMonster.com | last post by:
I have inherited a bunch of dbs which are are shared among a small group in my dept. We typically use the dbs to write queries to extract data, usually dumping it into Excel. Most dbs originated...
17
by: Woody Splawn | last post by:
I am finding that time after time I have instances where I need to access information in a variable that is public. At the same time, the books I read say that one should not use public variables...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
2
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can not update" messages since the upgrade from...
2
by: Torilyn73 | last post by:
Alrighty... one problem down... 40 more to go!! (Just kidding.. not really 40.. only 32!) My database needs to be accessible via the web. I have the server information so when its ready I can...
7
by: semijoyful | last post by:
OS: Win XP SP2 Access version: 2003 Excel version: 2003 I am new at this, as I am sure you have gathered from this post title:) I am working on a form where users can input data in Access and...
1
by: sdavis1970 | last post by:
I am working on an Access 2002 database where one of the tables has five required fields making up the key. There is a form that is linked to this table which is used for adding new records. ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.