473,414 Members | 1,596 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,414 software developers and data experts.

from field in form to another form.

What I am looking at doing is I have a couple of forms, when I enter
the number of products been despatched on the order form, it then
creates a record in the transaction table and also the product
history. I have created a couple of update queries which worked well,
but did not perform the way that I wanted them to.

I wanted to do it using code so that when the despatch order button is
pressed it creates the above.

The information of the order is in a sub form called Order details on
a form called orders., this then wants to create a record in the form
transaction history, and another in the product history. I have tried
to work on the code but to no avail.

sort of looked like this.

Forms!transaction history.form![qty required] = forms![order details].
[qty despatched]

Were it takes it from the field qty despatched on the order form in
the order details sub form and puts it into the form transaction
history in the field qty required.

I am looking for help on the coding part ie what are the parts made up
of i.e. what each part of the code relates to in respect of what it
isd doing.

Any help much appreciated if you can understand what I am trying to
get at. Please Help,

May 19 '07 #1
3 1867
A form is just a way of viewing/editing/adding data and doesn't store
anything. You can view what you change in one form on any other form, so
that if you enter a number in despatched in one form you can view it another
form and label it required. You don't want to double enter data. I would
guess that you have a way of identifying the product in both forms and it
would be a common ID number.

feeman wrote:
>What I am looking at doing is I have a couple of forms, when I enter
the number of products been despatched on the order form, it then
creates a record in the transaction table and also the product
history. I have created a couple of update queries which worked well,
but did not perform the way that I wanted them to.

I wanted to do it using code so that when the despatch order button is
pressed it creates the above.

The information of the order is in a sub form called Order details on
a form called orders., this then wants to create a record in the form
transaction history, and another in the product history. I have tried
to work on the code but to no avail.

sort of looked like this.

Forms!transaction history.form![qty required] = forms![order details].
[qty despatched]

Were it takes it from the field qty despatched on the order form in
the order details sub form and puts it into the form transaction
history in the field qty required.

I am looking for help on the coding part ie what are the parts made up
of i.e. what each part of the code relates to in respect of what it
isd doing.

Any help much appreciated if you can understand what I am trying to
get at. Please Help,
--
Message posted via http://www.accessmonster.com

May 20 '07 #2


Iunderstand that the forms are just for viewing/editing and adding
data, but this way does not actually duplicate the records it creates
a record with different information, gained from the original records.

Orginial record has the following on
stock ID
Stock Location
Qty Despatched

Transaction table has
date
action
stock id (from original stock form)
qty (from original stock record)

so from the original stock record I would like to take the sotck id
and qty and put it into the transaction form, date will be
automatically todays date and the action will be standard as of the
order record it will be a despatch and of the delivery note it will be
a delivery.

So I am trying to get the information from one form onto the other and
the this will automatically update the table .

May 20 '07 #3
I think you are doing inventory. Take a look at the Northwinds sample
database that ships with most versions of Access. It has an inventory
component.

feeman wrote:
>Iunderstand that the forms are just for viewing/editing and adding
data, but this way does not actually duplicate the records it creates
a record with different information, gained from the original records.

Orginial record has the following on
stock ID
Stock Location
Qty Despatched

Transaction table has
date
action
stock id (from original stock form)
qty (from original stock record)

so from the original stock record I would like to take the sotck id
and qty and put it into the transaction form, date will be
automatically todays date and the action will be standard as of the
order record it will be a despatch and of the delivery note it will be
a delivery.

So I am trying to get the information from one form onto the other and
the this will automatically update the table .
--
Message posted via http://www.accessmonster.com

May 22 '07 #4

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

Similar topics

10
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
7
by: Dave B | last post by:
Does anyone know of a program that will read a text file and fill in a web form with the contents of that file? We need to get about 3000 records (5 fields to each record) into a database owned by...
4
by: fig000 | last post by:
Hi, I'm relatively new to Javascript so please bear with me on what might sound like silly questions. This is what I want to do: I'm working in classic asp (I have to for this project). I...
4
by: Andy Hutchings | last post by:
Hi everybody - hope you can help out here. I have a form in a database, which is a columnar form from one of the tables in the db - there is a sub-form to the form which is a datasheet view of...
1
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary...
6
by: Sanjay | last post by:
Hi, Is it possible to save all the names/values of a form to another memo textfield before a Insert to the database then when required on another page split that memo textfield into the name and...
2
by: planetthoughtful | last post by:
Hi All, I have a calendar form that updates a date field on the form from which it was called. I have code in the OnChange event of the date field that I would like performed whenever the date...
9
by: sellcraig | last post by:
Microsoft access 2 tables table "data main" contains a field called "code" table "ddw1" is created from a make table query of "data main" Goal- the data in "code" field in needs to...
1
by: Adrienne Boswell | last post by:
I have a form which I am letting the user enter more than one event at a time. I need to check whether one date is less than another. If the display to date is earlier than the event date, then...
16
AccessIdiot
by: AccessIdiot | last post by:
I feel really dumb asking this but I'm not sure why it isn't working. I have a form that has a text field. You type a number into the text field, it gets concatenated with a string, then gets put...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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...

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.