Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

create duplicate fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GregB - 30 Mar 2007 13:48 GMT
Ok here is my situation.
When my users create an invoice there is a subform that is a continuous form
that is for the inventory related to the invoice.
Now for example, lets say the order contains 5 dell 383 computers. Normaly
the user would have to go through and populate all the fields in inventory 5
seperate times, even though they are all identical. There is a field that is
labled quantity and I would like it so that after the field is updated it
will create X(the amount the user typed into this field) amount of duplicate
iventory items.

*The reason that I need a new row for each is that each inventory item has a
unique serial number.
*Also note, that I tried to just highlighting the field and copying a
pasting. While this did create seperate inventory items, for some reason the
fields that I pasted were not being added into the total cost function I have
built in.

Thansk for your time!
Joseph Meehan - 30 Mar 2007 15:16 GMT
> Ok here is my situation.
> When my users create an invoice there is a subform that is a
[quoted text clipped - 14 lines]
>
> Thansk for your time!

   Your perceived problem comes from thinking spreadsheet when in fact you
are using a relational database.

   You need to perform what is called normalization of the database.  It is
a design process.

   While this may not apply to you 100% hopefully this example will start
you thinking in the right direction.

   You have an inventory.  You may stock 100 different items,  You may have
0 or more of any individual item.  For example you may have

20 #45 computers
15 Model ERM hard drives
2000 USB cables.
etc.

   You would want a list of items and the number on hand.  That information
would be in one table

   You then may have a sale John Smith of:

2  #45 computers
1 Model ERM hard drives
3 USB cables.

   That would be another table listing what was sold on a specific sales
order

    Yet another table will list John Smith as well as his address telephone
number etc.

   All those tables hold information about one kind of thing (inventory,
sales, customers)

   Using queries, forms and reports you interact with all the tables.  For
example when you have a sale you put in John Smith (or customer #103) and
his name and address can appear taken from the customer table.  Next you
type in the Item # or name of the 2 computers and and information about the
computers is added including checking to make sure you have some.  You add
the number sold.

   In a report you can print out the sale listing everything sold to who
etc.  You can also make up a report showing the number of remaining
computers etc.  You don't store this information, it is computed anytime you
want it so additional sales and returns are recorded.

   The Northwind example database that ships with Access has some examples.

   That is why Access is called a relational database since the data is
related in different tables.

Signature

Joseph Meehan

Dia 's Muire duit

GregB - 30 Mar 2007 16:50 GMT
I understand what you are saying and appreciate the time you took to respond.
I can see how you came to your conclusion, however my database has multiple
tables and multiple relations.

This is actually for a puchasing unit withing my company.
Each invoice has multiple items purchased.
I have an inventory and invoice table.
Each inventory item needs to be tracked and therefore thier serial number is
scanned into the inventory table when we recieve them.
Because we have to track each asset, each asset needs its own row within the
inventory table
This problem reverts back to my orginal question.

Let me know if you need any other info

Thanks again!

> > Ok here is my situation.
> > When my users create an invoice there is a subform that is a
[quoted text clipped - 66 lines]
>     That is why Access is called a relational database since the data is
> related in different tables.
Joseph Meehan - 30 Mar 2007 20:30 GMT
> I understand what you are saying and appreciate the time you took to
> respond. I can see how you came to your conclusion, however my
[quoted text clipped - 12 lines]
>
> Thanks again!

   Did you know that a Control '  (Control single-quote) will copy the data
from the prior record?  Will that help. You could write some VBA to do it,
but I wonder if it would be worth the real world work?

>>> Ok here is my situation.
>>> When my users create an invoice there is a subform that is a
[quoted text clipped - 74 lines]
>>
>>  Dia 's Muire duit

Signature

Joseph Meehan

Dia 's Muire duit

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.