473,395 Members | 2,006 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,395 software developers and data experts.

form to append a record in another table

Hi

My Scenario is:

I have two Forms:

first one is Haupttor Eintritt



the main function of this form that when you search a "Reg No" in the Search Field it finds it record from a "Bewohnerliste" Table and fill "Haupttor Eintritt" With Now Date (Just Check In Form).

second Form is Haupttor Ausgang



The same Function of the first Form except it fills "Haupttor Ausgang" with Now() (Just Check Out Form).


Both Forms are Bounded to "Bewohnerliste" Table.




both forms now are overwriting the "Haupttor Eintritt" and "Haupttor Ausgang" for each Record (Reg No) with latest Now().

My Problem is This:

I want also to add records to another table from those 2 forms.
a table is Called "Check In&Out (Omar)"



when someone search for a record from the Eintritt Form the form will append a record to "Check In&Out (Omar)" Table filling Reg No(The record that being searched in the form) field and ticking Yes in "Eintritt" and setting "Haupttor Eintritt" field for Now().


I tried a lot of codes in After Event of "Search Field" but couldn't reach other table from a bounded Form.

How could i Achieve This.?

any hint would be highly Appreciated.
Attached Images
File Type: jpg Ausgang.jpg (106.1 KB, 256 views)
File Type: jpg Bewohnerliste.jpg (64.4 KB, 367 views)
File Type: jpg Eintritt.jpg (96.0 KB, 315 views)
File Type: jpg In & Out.jpg (43.7 KB, 200 views)
Nov 6 '15 #1
1 1067
Update:

I solved This by adding a subform (its source is the table that i want to append records in) to each of the 2 forms. and hide those subforms.
then added an after update event to the "search field" control on the main Form to tick the "Entritt" in the subform.

Expand|Select|Wrap|Line Numbers
  1. Forms![Haupttor Eintritt]![CheckInOutsub].Form!Eintritt = True
when ticking is happend a new record is added.
Nov 6 '15 #2

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

Similar topics

2
by: Colm O'Hagan | last post by:
Hi there, I having a problem with a database I'm setting up, I would be delighted if someone out there could help. The database I'm setting up is a task register datebase, it will be used to...
2
by: PerryC | last post by:
Scenario: FormA: Field1, Field2 (Field1 is a combo box based on a NameTable w/ Name and phone fields) When users choose Field1 with Name1 (in record1 of NameTable), Field2 will...
2
by: Mark | last post by:
I have a FE/BD 2002 DB on a XP pro platform. I know this is ugly but it works for me...... A text file is produced from our Oracle WMS. (Average 20k records) A command button deletes all records...
13
by: technocraze | last post by:
Hi guys, I have an issue with incrementing a counter in a table using VB in MS Acess environment. Below mentioned is an instance. Implementation logic Table fields Serialno = pk Datatype...
4
by: PRLIT | last post by:
First, let me just say that I've been looking at this site for help for awhile now. Thank you for all the help you given me over the past few months. Second, I'm creating a form in Access 2007. I...
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...
24
by: Mr Hero | last post by:
I have 2 tables, one table is for the form to input records; and the other table is for keeping balances. How can I get my Balances table to update as new entries (+ or -) is entered in the input...
0
by: John Bloor | last post by:
I have a Microsoft Access 2007 database that uses a form whose recordset is a products table that contains an attachment field. From that form, I need to be able to append the current record to...
5
by: CD Tom | last post by:
Here's my problem. I have a person in New Zealand that I'm having problems with the date. Everything works fine except I have a date field in one form that updates another table with the date. I'm...
8
by: Shannon Mathews | last post by:
Ok trying to explain... 1. I have a tblMain that holds the master list of all my checks. 2. I'm currently using a make table query "qryCheckHoldingListCreateTbl" to get a list of all the checks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
0
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
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...

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.