473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

save a record in two different tables

2 New Member
How do I save a record (on a form) into two different tables at the same time?
Not an expert,but more than a beginner
Oct 6 '06 #1
2 4587
PEB
1,418 Recognized Expert Top Contributor
Hi,

You need An append Query... Create it from the Query Designer

In the macros use OpenQuery macro and assign your Append query

Then in your form in the respective event that fit you assign this macro!

:)
Oct 8 '06 #2
spkr70
2 New Member
Hi,

You need An append Query... Create it from the Query Designer

In the macros use OpenQuery macro and assign your Append query

Then in your form in the respective event that fit you assign this macro!

:)
Hi PEB,
Thanks for your reply.
I've had a go at Append,but I don't want the "messages" displayed.I want to click on the "Close Form" button & have the Save procedure run in the background.
info: I'm entering new data via the form.When finished entering data,I click on button "close Form" & data is saved to main Table.I used basic method(macro builder) ie Close formInspect,& Save.Here is the problem.The main table contains data about machinery,some machinery needs repaired.Faulty machinery is tagged "FAULTY" & after I repair faulty the record is Updated & tagged "NOT FAULTY".I now don't have a Historic record of equipment which was faulty.That's why I need two tables.One table(Main Table) which has updateable fields & another table(Historic) to keep a record of all that was faulty.
Ideally,I would like to click on "Close Form" & the data would be saved to the Main Table,& at the same time,filter the records tagged "FAULTY" & save these to the Historic Table.Does that make sense to you?
Oct 12 '06 #3

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

Similar topics

5
1768
by: Grim Reaper | last post by:
I know this should be easy (I think), but I can not figure out how to do it. Basically, I have 4 tables (2 tables with 2 subordinate tables) that have an INQ_ID key that was created by using...
11
17252
by: deko | last post by:
I need to create different recordsets based on queries that use data from unbound fields in a form. I've discovered that I can't do this, and instead need to save the data in question (usually a...
5
3727
by: Sami | last post by:
Please bear with me, and if you answer this question, please do it step by step. I am new at Access, not at all sophisticated. I am using Office XP. This will need to be read in Access for...
2
18447
by: Joe | last post by:
I have a form which displays data in 3 related tables. I want to give the user a prompt to save changes when any field has been modfied on the form. Is there a easy way to do this so the 1 or...
4
1656
by: jaYPee | last post by:
anyone know how can i save record from datagrid back to sql server using datacommand? im trying to use dataset but no luck. the source has a join table and when i use the dataadapter wizard it says...
4
2714
by: is49460 | last post by:
Any help would be very appreciated!!! I have two tables: Main Data and Archived Data. Each table has the same fields (about 50 or so fields). Main data contains records that are updated every...
7
4529
by: john | last post by:
In my form I have a master table and a details table linked 1xM. I can search through the whole parent table but I also like to be able to search through the child table fields to find parent...
2
64459
by: Ian | last post by:
I am trying to save the current record on a form before opening a report, doesn’t sound to hard does it? The code on a buttons on click event goes like this: DoCmd.DoMenuItem acFormBar,...
1
5751
by: dufnobles via AccessMonster.com | last post by:
How can I manually save information entered on a form onto a table? The form information is derived from different tables. I want to inter the resulting information into another table. Please...
0
7160
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
7537
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...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
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
5685
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,...
1
5086
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
3233
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
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.