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

Refrencing another record

I need to create a report from a table that collects the time that a
manufactured item is ready for delivery. One item I need to add to the
report is the time differential of each manufactured item sent to a specific
location. For example, Widget 1 has a ID of 1, and production time of 10:00
am. Widget 2 has an ID of 2, and a production time of 10:03. Widget 3 has
an ID of 3, and a production time of 10:07. I need a report that based on
this items falling in sequence of ID can calculate the time differential is
0:07 (Minutes). This concept is stumping me. (I don't need help with report formating or grouping, just getting these pieces of information to calculate.)

Thanks
Apr 30 '07 #1
3 1293
maxamis4
295 Expert 100+
We use this method for metrics where I work. The best way to do this is to create a seperate table with an autoid. Now you should create a field that has the particular order number to reference a field called date and a field called time stamp. You will need to use VB for this process. Every time a change is made into the particular order an insert statement will add a record to the table, based on the your order number which should be unique per widget. Another words order 123 has 12 steps, every time someone enters or a change is made to order 123, a stamp with order 123 will be made with the date and the time. you can include a stamp as well with the process name.

1. On after update call a module that inserts the stamp.

I need to create a report from a table that collects the time that a
manufactured item is ready for delivery. One item I need to add to the
report is the time differential of each manufactured item sent to a specific
location. For example, Widget 1 has a ID of 1, and production time of 10:00
am. Widget 2 has an ID of 2, and a production time of 10:03. Widget 3 has
an ID of 3, and a production time of 10:07. I need a report that based on
this items falling in sequence of ID can calculate the time differential is
0:07 (Minutes). This concept is stumping me. (I don't need help with report formating or grouping, just getting these pieces of information to calculate.)

Thanks
Apr 30 '07 #2
Thank you for your reply. I am not very good at VB. I am interested in learning more and I'm wondering if there is an example of what your describing on the net somewhere or something I can reference to work on what you have described.


We use this method for metrics where I work. The best way to do this is to create a seperate table with an autoid. Now you should create a field that has the particular order number to reference a field called date and a field called time stamp. You will need to use VB for this process. Every time a change is made into the particular order an insert statement will add a record to the table, based on the your order number which should be unique per widget. Another words order 123 has 12 steps, every time someone enters or a change is made to order 123, a stamp with order 123 will be made with the date and the time. you can include a stamp as well with the process name.

1. On after update call a module that inserts the stamp.
Apr 30 '07 #3
maxamis4
295 Expert 100+
I don't mean to be harsh but, VB is a long process, so start by examples, but usually what you are looking for is called an audit trail. Good luck

Example sites
http://www.fabalou.com/
http://www.databasedev.co.uk/downloads.html
http://www.geocities.com/pmpg98_pt/

example
Expand|Select|Wrap|Line Numbers
  1.  
  2. CurrentDb.Execute "INSERT INTO tbl_Import_Audit (FileName, Import_Date, User, CompIP, CompName, myTime) VALUES ('" & txtFilePath & "',#" & mydate & "#,'" & myUser & "','" & myIP & "','" & myComp & "',#" & mytime & "#)"
  3.  
  4.  
my example includes some concepts of VB more advanced. But it will look something like that. the amper sign and quotes distinguish whether its a string or an integer (number)

Thank you for your reply. I am not very good at VB. I am interested in learning more and I'm wondering if there is an example of what your describing on the net somewhere or something I can reference to work on what you have described.
Apr 30 '07 #4

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

Similar topics

17
by: Rick | last post by:
Hi all, Is there a MySQL function to get the first record through a query? I would like to open a page of client records with the first one shown. The other records can be accessed from a...
9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
35
by: les_ander | last post by:
Hi, I know that i can do readline() from a file object. However, how can I read till a specific seperator? for exmple, if my files are name profession id #
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
1
by: Scott269 | last post by:
So I've got an old MS Works database I imported into Access. I needed a primary key so I created a record number field that was just the record number I manually inserted when I entered it in the...
0
by: NathanV | last post by:
I have a class that I'm refrencing thats in a class library. VS.NET gives me an error when calling which states, 'Namespace does not exist in the class or namespace...'. The page compliles and...
2
by: Mark Reed | last post by:
Hi All, I have created a multi-user application at work which is working perfectly apart from a small problem which I believe to more a of a user issue (maybe some will set me straight on that...
11
khalidbaloch
by: khalidbaloch | last post by:
hi : all Friend i am a new member of this comunity as well in php myqsl i want learn that how to dispaly three or two record from a mysql table for example .. mysql table category has 21 columns,...
3
prn
by: prn | last post by:
Hi folks, I've got something that's driving me crazy here. If you don't want to read a long explanation, this is not the post for you. My problematic Access app is a DB for keeping track of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.