Solved

Real time form.

Posted on 2011-03-24
2
316 Views
Last Modified: 2012-05-11
I have a form that looks something like this:
Start Time  Stop Time      Status Code      Incident      Incident Title
12:00           1:00                             E                         34          Standby

I need to have that form automatically go to the next line and start another line with the same format. I couldnt draw the lines,  but it should be a table format. So when they tab at the end it will start another row automatically with date/time format and all the other columns.
0
Comment
Question by:gigifarrow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 35209053
Generally you do this by capturing the values in module-level variables. For example, in the General Declarations section of your FORM, add these variables:

Private mdStartTime As Date
Private mdStopTime As Date
Private msStatusCode As String
etc etc

Now capture the values in the Form's BeforeUpdate event:

Sub Form_BeforeUpdate(Cancel As Integer)
  mdStartTime = Me.[Start Time]
  msStatusCode = me.[Status Code]
End Sub

Now, in the Current event ofy our form, check for a NewRecord and if found, add those values;

Sub Form_Current()
  If Me.NewRecord Then
    Me.[Status Code]= msStatusCode
    Me.[Start Time] = mdStartTime
  End If
End Sub

Obviously you'd have to change the names of your controls and such based on your project, and you'd have to add the other variables to handle all the items you need.
0
 

Author Closing Comment

by:gigifarrow
ID: 35212354
the information wasnt that clear
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
i am unable to add data to mysql database 6 50
SQL Query help 3 42
Convert VBA UDF to SQl SERVER UDF 4 49
Database Owner 3 18
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question