Solved

Adding to open record on form, from unbound textbox

Posted on 2016-09-15
4
49 Views
Last Modified: 2016-09-15
I have a DB that tracks work for employees, the employee logs in and that information is stored in a temp table/query. Them the employee goes to a form and works based on date range for the assignments.
So the problem that I am running in to is, I am trying to add the person and date of when the assignment is complete. So I tried adding VBA to OnClick for the yes/no for the completed field. I created two text boxes one is a d-lookup for the employee and the other is the text box for the date.
Please let me know if addition information is needed.
0
Comment
Question by:Raymond Rule
  • 2
  • 2
4 Comments
 
LVL 84
ID: 41800030
Where are you adding the Date the Assignment is complete?

And how do you determine if it is Complete?

Remember that we cannot see your screen, so referring to things like "completed field" means nothing to us.

If your goal is to "stamp" records with the current user and time, then I generally leave the login form open but hidden, and refer back to that form to get the username. If you want to get the current date, just use Now() or Date()
0
 

Author Comment

by:Raymond Rule
ID: 41800131
Sorry for the delay, still learning Experts Exchange.

I have attached a screen shoot.
#1 on screen shoot is the unbound fields that I want to update 2
#2 on screen shoot is the is the bound field for the open report.
#3 on screen shoot is the OnClick for completed.

Sorry for lack of information. still learning all of this.screen shoot
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 41800176
So the two items in Item1 contain the data you wish to use to fill the two items in Item2? And you want to do this when the user checks the Complete box?

If so, then you could do this in the AfterUpdate event of the Completed checkbox:

Me.CompletedBy = Me.QNumber
Me.CompletedDate = Me.QDate

Of course, I have no idea of the names of your Controls on that Form, so you'd have to change those to match the ones in your form. In the example I gave, the two items on the left side of the equal mark are the items in #2, and the two items on the right side of the equal marks are the items in #1.
0
 

Author Closing Comment

by:Raymond Rule
ID: 41800257
That worked perfectly, thank you.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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…

770 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