472,353 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Calculated Field Not Requerying

I have ran into an interesting situation. I have a calculated field
based on a combobox column that somtimes is not requerying when I
change the combo box value.

Combobox
cboCustomer
2 Columne - Widths 1;0 - LimitToList = Yes

Calculated TextBox -
ControlSource =cboCustomer.Column(1)

These controls are set in a Tab Control with one page that has the
following properties
It is transparent and has no buttons or Tabs

Any help to why it only requeries sometimes would be very appreciated

Mark Kola
Nov 12 '05 #1
2 2072
Ray
mw****@hotmail.com (Mark Kola) wrote in message news:<9b*************************@posting.google.c om>...
I have ran into an interesting situation. I have a calculated field
based on a combobox column that somtimes is not requerying when I
change the combo box value.

Combobox
cboCustomer
2 Columne - Widths 1;0 - LimitToList = Yes

Calculated TextBox -
ControlSource =cboCustomer.Column(1)

These controls are set in a Tab Control with one page that has the
following properties
It is transparent and has no buttons or Tabs

Any help to why it only requeries sometimes would be very appreciated

Mark Kola


Hello Mark,

It seems to me that what you have set up is the Text box
sourcing column(1) from the combo box when the form opens
but nothing to update the text box after a new selection
has been made in the combo box.

I think that what should be done is to requery the record
so that your calculated text box data can be updated.

Add the following code to the "After Update" property of
your combo box:

DoCmd.Requery

If that doesn't work, try:

CalculatedTextBox.value = cboCustomer.Column(1)

Regards,

Ray
Nov 12 '05 #2
I Think I figured out the answer.

I also had the detail section hidden when the form opened up. It looks
as if when that section is hidden, there is an issue with form
calculations. I don't know what the issue is but corrected the problem
by doing the following:

1. Reset Form Detail section to visible
2. On form load set focus to a detail control and then to the header
control and set the form detail to not visible

Mark
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

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

Similar topics

2
by: Mark Kola | last post by:
I have ran into an interesting situation. I have a calculated field based on a combobox column that somtimes is not requerying when I change the...
1
by: Norbert Lieckfeldt | last post by:
MS Access 2002 here. I am just trying to set up a simple database for a friend who's an optician. Basically, all clients with address details, date...
1
by: Jimmer | last post by:
How do you recognize a change in the value of a calculated control? The normal events such as Dirty don't seem to work, unless I physically...
2
by: hhathome | last post by:
In my report I have a calculated DateDiff Field, I also have a calculated count field. I'm trying to get a total of the DateDiff field and...
2
by: markm75c | last post by:
Does anyone know of a way to sort a column which isnt databound or an actual field in the database, but is derived from a method? IE. I have a...
3
by: kelley.l.turner | last post by:
Hi all, I am very new to MS Access so please bear with me! I have created a simple calculated field in my data entry form, yet when I view my...
5
by: Henrik | last post by:
The problem is (using MS Access 2003) I am unable to retrieve long strings (255 chars) from calculated fields through a recordset. The data takes...
2
by: jcf378 | last post by:
hi all. I have a form which contains a calculated control ("days") that outputs the # of days between two dates (DateDiff command between the...
9
by: Haas C | last post by:
Hi all! Is there anyway I can override a value in a calculated field on a form? For example: I have a form which displays the following fields...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

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.