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

Display value from previous record.

I have a data entry form used for adding records tied to a particular
checklist number. I currently have to enter the checklist number on
each new data entry form. It would be desirable to have the new data
entry form display the checklist number from the previous record. Is
there a reasonable way to do this? Thanks in advance for any help.

Tony

Nov 12 '05 #1
2 3123
On Thu, 29 Apr 2004 22:23:27 GMT, Hu***************@lerc.nasa.gov
(Tony Schoeffler) wrote:
I have a data entry form used for adding records tied to a particular
checklist number. I currently have to enter the checklist number on
each new data entry form. It would be desirable to have the new data
entry form display the checklist number from the previous record. Is
there a reasonable way to do this? Thanks in advance for any help.

Tony

Use the control's After Update event to set the control's Default
Value to the value just entered.

- Jim
Nov 12 '05 #2
Hu***************@lerc.nasa.gov (Tony Schoeffler) wrote in
news:c6**********@sulawesi-fi.lerc.nasa.gov:
I have a data entry form used for adding records tied to a
particular checklist number. I currently have to enter the
checklist number on each new data entry form. It would be
desirable to have the new data entry form display the
checklist number from the previous record. Is there a
reasonable way to do this? Thanks in advance for any help.

Tony
Very. There are several ways to do it, depending on your particular
needs, but one I like to use is to set a command in the AfterUpdate
event of the Checklist Number control.

That command sets the .defaultvalue for the cheklist_number to the
value just entered.
So (air code, not tested)
private sub Checklist_AfterUpdate
me.checklist.defaultvalue = me.checklist.value
End sub.

Note that if you close the form, the default value will be blank
again.

But you might also consider having a masterform for the checklist
info, and a subform for the checklist items.

Bob Quintal


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gene | last post by:
When entering a record in a form, I would like a value in a field of the previous record to be entered automatically into a different field of the current record. Which way should I go? Is it also...
3
by: DataBard007 | last post by:
My Access 97 database has a form that contains text boxes that display people's names, addresses, phone numbers, etc. The record source is a single table. I created a NextRecord and Previous...
0
by: Carl | last post by:
I have a main form with navigation buttons on it and a label showing for example Record 1 of 15 using recordsetclone on it and eveything works fine. When I move through the records the record...
2
by: Corepaul | last post by:
As input is typed into a text box, I would like to search a recordset for the first record that matches what has been typed so far. I would like to update the text box to display the letters typed...
2
by: Tony Schoeffler | last post by:
I have a data entry form used for adding records tied to a particular checklist number. I currently have to enter the checklist number on each new data entry form. It would be desirable to have...
0
by: huela | last post by:
Somehow i have to display the recordset in unbound form When i use the following display the data in recordset to unbound form. I have a question: i can only display the last record data, all...
8
by: Jeff | last post by:
A client wants a press of the Enter key in a field on a continuous form to grab the value of that field from the previous record. But if they have typed a value and then hit Enter it shouldn't. ...
1
by: roveagh1 | last post by:
Hi I've been using the 2 year old link below to repeat values from previous record field into current corresponding field. It's worked fine for text but the last piece of advice was to use the same...
36
by: beebelbrox | last post by:
Hi, I am new VB programming in Access and I am requesting help with the following code. WIndows OS MSaccess 2003 This code is attached to an unbound form that will display a specific recordset...
6
by: Gord | last post by:
I have a report whose Record Source I set in code when clicking on a command button on a form. This Record Source is a table that gets created by the code. I have a textbox on the report whose...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.