473,396 Members | 1,671 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.

Values carried over from one record to the next

I hope that I explain this in a manner that makes sense.
On the form that I am working on, I have a box that I've setup to input

the amount of scans that I've done for a client (call it the SCANS
box) and in the next box I've made it automatically input the cost of
the scans. All seems well with the formula in the cost box, but for
some reason, when i go to the next record the value stays in the SCANS
box instead of starting out blank, like I want it to.
As a newbie, I appreciate all your help!
Thanks,
Adam

Jan 31 '06 #1
4 1152
Adam - Regus wrote:
I hope that I explain this in a manner that makes sense.
On the form that I am working on, I have a box that I've setup to input

the amount of scans that I've done for a client (call it the SCANS
box) and in the next box I've made it automatically input the cost of
the scans. All seems well with the formula in the cost box, but for
some reason, when i go to the next record the value stays in the SCANS
box instead of starting out blank, like I want it to.
As a newbie, I appreciate all your help!
Thanks,
Adam

In the OnCurrent event of the form you could put in a Requery line.
Me.CalculatedTextBoxName.Requery
Jan 31 '06 #2
Sounds like Scans is unbound. If so, add code to the Current event of
the form that does this:
me!Scans = ""

Jeremy
--
Jeremy Wallace
Fund for the City of New York

Jan 31 '06 #3
The box is indeed unbound. Dumb question, but is it possible just to
bind the box to something? If I put in SCAN in the control source, I
just get a #name? error. I guess I made the box wrong. Once again, I
thank you for your time and patience. I seriously dont know much about
access. ;) (my boss should be paying someone to do this...)

Thanks,
Adam

Jan 31 '06 #4
Adam - Regus wrote:
The box is indeed unbound. Dumb question, but is it possible just to
bind the box to something? If I put in SCAN in the control source, I
just get a #name? error.


There are two possibilities for this error that come to mind right away.

The first: do you have a query as the form's recordsource that has a
field in it called SCAN? If not, the #Name error is Access asking
"Where in the blazes do I get 'SCAN' from, huh?" 8)

The second: if you do have a field name in the form's underlying query
called SCAN, then check the name property of your text box in question.
It is probably called "SCAN" as well. If so, what you've done is name
the text box "SCAN" and also told Acces that the controlsource of the
text box is "SCAN". Once again, this will get Access angry at you. To
correct this, rename the name property of the textbox to something like
"txtScan", ie, something different from the controlsource.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Jan 31 '06 #5

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

Similar topics

1
by: David | last post by:
Hi, I have an ASP page with a form and the following code: ..... type=Radio Checked name=selectserial value=" & RS("PSL_F_Serial")..... Tis will carry over the value of RS("PSL_F_Serial"),...
0
by: Steven Stewart | last post by:
Hi there, I have an Employees table and a DataRecords table (a one-to-many relationship). The DataRecords table has a primary key based on a combination of fields. These fields are Month,...
0
by: Jeff Boes | last post by:
I hope this helps someone else ... I had struggled some time ago with attempts to get a rank of values query to work, but then I gave up and set it aside. I had another reason to attack it, and in...
3
by: jrbrady | last post by:
I'm having a rather vexing problem with my VB.NET ASP.NET application: Briefly, on rare occasions, when a user of my site presses a button to move from one record to another, and the Page_Load...
1
by: David | last post by:
Hi, I have a problem with returning a value from an external function..... My asp page is basically a list taken from a database. A date record is written from the DB, then all the...
1
by: planetthoughtful | last post by:
Hi All, I have a mainform with a subform in which I show some task summary data. On the mainform I have a number of unbound controls that reflect values relevant to each task in the subform....
14
by: cody | last post by:
I got a similar idea a couple of months ago, but now this one will require no change to the clr, is relatively easy to implement and would be a great addition to C# 3.0 :) so here we go.. To...
4
by: J | last post by:
I am editing a pre-existing view. This view is already bringing data from 40+ tables so I am to modify it without screwing with anything else that is already in there. I need to (left) join it...
2
rsmccli
by: rsmccli | last post by:
Access 2002 Hi, I have a number of comboboxes/textboxes in the header of a form that the user selects values from. These comboboxes/textboxes correspond to controls in a datasheet view subform....
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: 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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.