473,387 Members | 1,641 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.

Append new form data to various tables?

Hi all

A little issue I have been stuck on for many days now.

I have created a form with about 45 boxes to enter date. About 10 of these will be combo boxes that will look up data from certain tables(the user then selects the relevent choise). The rest of the boxes are all stnadard textboxes where the user enters certain info.

I also then have a save button on the bottom of the form.

What I need to happen is once the whole form has been completed and the user press Save, is for the form data to be saved to about four different tables. Now I cannot work out the easiest way to go about this. What I also want, is once the user has slected Save and during the write process, there is a problem, for a rollback operation to take place to remove data written to tables during execution, to be removed.

Hope this makes sense.

Thanks
Mar 29 '07 #1
2 1349
ADezii
8,834 Expert 8TB
Hi all

A little issue I have been stuck on for many days now.

I have created a form with about 45 boxes to enter date. About 10 of these will be combo boxes that will look up data from certain tables(the user then selects the relevent choise). The rest of the boxes are all stnadard textboxes where the user enters certain info.

I also then have a save button on the bottom of the form.

What I need to happen is once the whole form has been completed and the user press Save, is for the form data to be saved to about four different tables. Now I cannot work out the easiest way to go about this. What I also want, is once the user has slected Save and during the write process, there is a problem, for a rollback operation to take place to remove data written to tables during execution, to be removed.

Hope this makes sense.

Thanks
We need much more information than you have provided here:
__1. Are the 4 Tables related?
__2. If they are, what are the relationships between them?
__3. What Fields are they related on and what are the Relationship types? (1 to 1, 1 to Many)?
__4. What is the underlying Record Source for the Form?
__5. Do these 10 Combo Boxes have Control Sources or are they all Unbound?
__6. etc., etc., etc.
__7. The 2nd part of your question involves encapsulating the entire Record writing process inside a Transaction. You are a long way from that without getting the other issue resolved first.
Mar 29 '07 #2
Thank you for the reply.

Well unfotunately the table realtaionships are not as straight forward as it should be because I am using linked tables to a AS400 system and relationships does not work the same on AS400 as in access or SQL. (For one, you cannot use foreign keys on AS400) I have in all 48 tables and trying to relate these on the AS400 i some way is a nightmare.

There is no underlying recordsource for the form.

All the comboboxes that would be looking up data,(presented in a dropdown list) would be bound to various fields in many different tables.

This propable all sounds a bit complicated.

So to try and make things easier, I am more after just a point in the right direction, like do I use a extremely long SQL Insert statement? Or do I use an append Query? etc.
Mar 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Paul Wagstaff | last post by:
Hi there I have 2 tables: tblAccuracy & tblClearance Users add new records to tblAccuracy using frmRegister. Under specific conditions I need to append the current record from frmRegister into...
1
by: Peter D | last post by:
I have a database in ACCESS 97 and i have a routine that copies the tables to a database onto a floppy. What i would like is a routine to transfer the data from the floppy into the tables in a...
2
by: Steve B | last post by:
I am trying to design a Call Log Detail form that will allow users, in a multi-user environment, to select various data/records, not necessarily in sequential order, from a subform that will, when...
3
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.