Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Real time form.

Posted on 2011-03-24
2
Medium Priority
?
328 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 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

722 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