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

Data disappears from Header textboxes

Using Access2003 and XP:
In a continuous form using only a Form Header and Detail section, the
following occurs:
Three of the many textboxes in the Form Header lose visibility of their
data when the cursor moves to the Detail section. The data still exists
but it disappears.
This does not occur on the first record of this continuous form's
Detail Section, but will occur when focus moves to any other record.
Moving back to row 1 and the data appears, move to row 2 and the data
disappears.

Two of the textboxes are loaded on the Form Load Event the third has
the same format as all the other textboxes.

Private Sub Form_Load()
Me.txtTtravelerDate.Value = Date
Me.txtEngineSerial = Trim([ORDER])
End Sub

Help!
Thanks, Rick

Jun 12 '06 #1
2 1945
For starters, code in the Form_Load event will only run once. It runs when
the form loads and never again unless you call it from some other sub of
your own, "call Form_Load". Assuming that the two controls you're talking
about are bound to fields in the recordsource of the form, what's happening
is that the form loads, the two values are copied to the controls, which
places them in the underlying fields. Then you move to another record, in
which the fields are empty, and that's what you're seeing.

Beyond the simple problem described, there is a larger problem of copying
values out of one field in a record into another field in the same record.
If you can calculate what you want to copy, generally you don't copy, you
just display the calculated value.

Are you trying to set default values on new records or something along that
line? It helps if you say not only the specific problem with the control
but the larger goal you have in mind as well.
Jun 12 '06 #2
If it is a continuous form, I find it unusual that there would be
fields displayed in the HEADER portion of the form that are coming from
the detail.

But if that is what is necesary, then put the code to load them in the
OnCurrent event NOT the OnLoad event.
Ron

Jun 13 '06 #3

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

Similar topics

10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
2
by: Josef Meile | last post by:
Hi, I'm using a ComboBox, some Textboxes, and a DataGrid to represent a many-to-many relationship between Person and Course. Each time that I change the value in the ComboBox (which for now is...
2
by: Carlo Marchesoni | last post by:
I have a UserControl that builds a Tree-View Menu using Javascript. This UC does not run as a ServerControl Then, in every aspx page I include this UC. Everything works perfect, except that if I...
1
by: AndrewF | last post by:
Hi all, I am sure something like this has been covered somewhere so I am hoping a quick answer or pointer may suffice, however a couple of days trawling and I can't find anything on it. I'm...
1
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1...
9
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
0
kazinmich
by: kazinmich | last post by:
Any suggestions? The property values are all correct... it disappears. It never used to, but we had someone try and alter the page by making the icon smaller to have less space between the icon...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.