473,509 Members | 3,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can this form be made in ACCESS?

here's the situation:
a produce dept at a grocery store needs to generate a weekly sheet for
ordering. This is how it looks:
5 columns across with the following headings:
Product Description, UPC code, Case Quantity, Case Price, Retail Price
- Product Description, UPC code, Case Quantity, are all to be drawn
from a table containing 100 records.
-Case Price, Retail Price are fields which will appear empty but allow
data entry

would it be possible to choose the item in the Product Description
field from a drop-down list of all values in the table and then have
it's corresponding UPC code and Case Qty also appear in that row?

There will be 20 rows each with a different product Descrip chosen.
Can each row have a drop down list from which the product can be
chosen?

After the selecting the contents of the 20 rows showing which will be
ordered, then that form can be printed and be the weekly order form.

hope this is clear. is it possible, if so, how does one go about it?
Nov 12 '05 #1
6 1625
On 8 Feb 2004 15:11:20 -0800, B Blue wrote:
here's the situation:
a produce dept at a grocery store needs to generate a weekly sheet for
ordering. This is how it looks:
5 columns across with the following headings:
Product Description, UPC code, Case Quantity, Case Price, Retail Price
- Product Description, UPC code, Case Quantity, are all to be drawn
from a table containing 100 records.
-Case Price, Retail Price are fields which will appear empty but allow
data entry

would it be possible to choose the item in the Product Description
field from a drop-down list of all values in the table and then have
it's corresponding UPC code and Case Qty also appear in that row?

There will be 20 rows each with a different product Descrip chosen.
Can each row have a drop down list from which the product can be
chosen?

After the selecting the contents of the 20 rows showing which will be
ordered, then that form can be printed and be the weekly order form.

hope this is clear. is it possible, if so, how does one go about it?


Explaning how in any detail would take some time (probably faster just to
build it), but yes this can be done using a datasheet or continuous form
attached to a query or table. With some minor code, you can have the
desired fields fill in after a choice is made, and the table emptied after
use so that it will open empty next time by running a delete query. The
form can be printed. Look through the help files for the following topics
and design away.

ComboBox - Properties
RowsourceType
Rowsource
Column
AfterUpdate
ColumnWidths
Continous Forms
Datasheets
Action Queries

If you are planning on storing the data that is filled in, then how you set
the form up becomes a little more involved.

--
Mike Storr
veraccess.com
Nov 12 '05 #2
NB
Yes, it is possible
And why can't it be made? ;-)

In other words, for basic questions like this, you should first try to
do it yourself. Then if you get some trouble or difficulty that you
can't solve (after you have RTFM - excuse my French), ask the NG.

NB
Nov 12 '05 #3
ni******@lycos.com (NB) wrote in message news:<5c**************************@posting.google. com>...
Yes, it is possible
And why can't it be made? ;-)

In other words, for basic questions like this, you should first try to
do it yourself. Then if you get some trouble or difficulty that you
can't solve (after you have RTFM - excuse my French), ask the NG.

NB


I have been trying to set it up myself. Please excuse the fact that
i've been working alone for a long time in ACCESS and don't know the
correct terms.

I've gotten stuck on the combo box (which unfortunately is the
starting point). I've set up the whole form so it looks the way i
want.
i've three fields : [ProductDescription][UPCcode] [CaseQty] across the
top.
I want to make the ProductDescription a drop down list from which I
can choose a product and have it's corresponding information in that
record show up in that row.

For that ProductDescription field I have a an unbound field that I've
turned to a combo box. In the properties of the that field:
Control Source: ProductDescription
Input Mask: ?
Row source Type: Table/query
Row Source; ProduceTable (which didn't work)
The rest of the properties I've no idea what to fill in.

if I could just get started I could start to figure out what to look
up.
Nov 12 '05 #4
On 9 Feb 2004 16:54:14 -0800, B Blue wrote:
I have been trying to set it up myself. Please excuse the fact that
i've been working alone for a long time in ACCESS and don't know the
correct terms.

I've gotten stuck on the combo box (which unfortunately is the
starting point). I've set up the whole form so it looks the way i
want.
i've three fields : [ProductDescription][UPCcode] [CaseQty] across the
top.
I want to make the ProductDescription a drop down list from which I
can choose a product and have it's corresponding information in that
record show up in that row.

For that ProductDescription field I have a an unbound field that I've
turned to a combo box. In the properties of the that field:
Control Source: ProductDescription
Then it's not unbound. It is bound to the ProductDescription field.
Input Mask: ?
Row source Type: Table/query
Row Source; ProduceTable (which didn't work)
Use the builder button to create a query for this property.
Something like
SELECT tblName.ProductDescription, tblName.UPCcode, tblName.CaseQty FROM
tblName;
The rest of the properties I've no idea what to fill in.

if I could just get started I could start to figure out what to look
up.


I think your recordsource for this form is not on the right table or query,
or not set at all. If it is bound to the products table, then each line you
create will add a product to that table - should it go into an OrderDetail
table or something like that? Even a temporary one that can be emptied
afterward will do.
Add in the AfterUpdate the following...

Me!UPCCode = Me!ProductDescription.Column(1)
Me!CaseQty = Me!ProductDescription.Column(2)

--
Mike Storr
veraccess.com
Nov 12 '05 #5
Mike: thanks so much for your help on this.

I've figured out how to set up the combo box using the wizard. I'm
not sure if I want to include all three fields I want to show up in
each row or just the field from which I want to choose the record.
i.e. choosing [Product Description] from drop down list will get it's
corresponding [UPC] and [CaseQty] to show up in that row

I can get it to work in the first row. how can I have 20 rows where
in each of the rows a different product is chosen so that record only
shows in that row and doesn't change the first row whose product
you've chosen. In other words I want a different record to show in
each row.

you mentioned adding in the AfterUpdate the following:
Me!UPCCode=Me!ProductDescription.Column(1)
Me!UPCCode=Me!ProductDescription.Column(2)

With how I described I set up the first row, would that code still
work and would I copy that row of fields (including the combo box i've
got for the product) and past it into the form 20 times and then put
the code you wrote in each row's combo box's AfterUpdate property?
Nov 12 '05 #6
On 10 Feb 2004 18:55:53 -0800, B Blue wrote:
Mike: thanks so much for your help on this.

I've figured out how to set up the combo box using the wizard. I'm
not sure if I want to include all three fields I want to show up in
each row or just the field from which I want to choose the record.
i.e. choosing [Product Description] from drop down list will get it's
corresponding [UPC] and [CaseQty] to show up in that row

I can get it to work in the first row. how can I have 20 rows where
in each of the rows a different product is chosen so that record only
shows in that row and doesn't change the first row whose product
you've chosen. In other words I want a different record to show in
each row.

you mentioned adding in the AfterUpdate the following:
Me!UPCCode=Me!ProductDescription.Column(1)
Me!UPCCode=Me!ProductDescription.Column(2)

With how I described I set up the first row, would that code still
work and would I copy that row of fields (including the combo box i've
got for the product) and past it into the form 20 times and then put
the code you wrote in each row's combo box's AfterUpdate property?


The simplest thing to do here, is to have this form bound to a table. If
there is any static information on this form, then you should be using a
Mainform / Subform arrangement, with the static info on the main. The form
that requires 20 rows, would be bound to a table and placed on the main as
a subform in Datasheet or Continous views. Doing this allows you to create
only one "row" of controls in the Details section of the subform, and this
row will automatically replicate itself (code and all) whenever a new row
is needed. Each row will pretend it is the only one there, and your code
will affect only the row that is current.
If you do not want to store the info that is entered, the run a query on
form closing that empties the table the subform was based on.

--
Mike Storr
veraccess.com
Nov 12 '05 #7

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

Similar topics

2
1747
by: Peter D | last post by:
I have a table TBL_NAMES : IDNAME , Name_person , ETC..... (15 different labels) I have a second table TBL_POINTS : IDPOINTS , LINKNAME_PERSON , POINTS_ALGEBRA , POINTS_GYM , etc.... (25...
16
11816
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
4
4025
by: William Wisnieski | last post by:
Hello Everyone, Access 2000 I have a form with multiple pages on it. There is one text field on the third page of the form that I need the user to complete before leaving the form or moving...
13
2486
by: MLH | last post by:
I have a form with two controls: !! - combo box !! - text box A button on the form tries to run this SQL when clicked... INSERT INTO BodyMsgsSent (ToWhom, BodyText) SELECT DISTINCTROW !! AS...
5
2720
by: elieli_132 | last post by:
Hi, My problem is the following: Made changes to code in form and closed the form. Now unable to open / design the form. - Tried copying and pasting - the new one does not open /display....
13
7442
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
1
1140
by: vincent | last post by:
Good day to you and all... Im a novice web designer. basically i know a little dreamweaver and thats all. now ive been assigned to resurrect a web page...so basically the previous web designer...
13
3430
by: eighthman11 | last post by:
using Access 2003 and sql server version 8.0 Hey everyone. Created a text box where the user types in an Inventory number and it takes them to that inventory number on the contimuous form. The...
9
2495
by: dhtml | last post by:
I have written an article "Unsafe Names for HTML Form Controls". <URL: http://jibbering.com/faq/names/ > I would appreciate any reviews, technical or otherwise. Garrett --...
3
4165
by: dirksza2009 | last post by:
Hi, I've made a multi user (4 end users) database in Access 2000. I've made data tables, reference tables etc which sits on a shared drive and I've made individual front ends for the end users...
0
7234
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,...
1
7069
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
7505
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
5652
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
5060
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
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1570
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 ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
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.