473,549 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

textbox: counting & editing


I have a next situation with the textbox field:
A - B = C

1. How to fill the A fill with the data from my previous recordset ?
Can I do it with the expression builder ?
2. I want that every field I can edit or count, depends on what fileds I
input the value ?
Feb 26 '06 #1
4 1912
Dado wrote:
I have a next situation with the textbox field:
A - B = C

1. How to fill the A fill with the data from my previous recordset ?
Can I do it with the expression builder ?
2. I want that every field I can edit or count, depends on what fileds I
input the value ?

I really don't understand your question. If the textbox is a
calculation, you could enter something like
=[Text0] - [Text1]
or if you want to write a function then
=GetValue([ID])
or create a variable to store it in the declarations section of the code
module
Dim lngVal As Long
and when you save a record, store the value to lngVal. You can do stuff
in the OnCurrent event to stuff that value to the text field.

Feb 26 '06 #2

"salad" <oi*@vinegar.co m> je napisao u poruci interesnoj
grupi:%K******* *********@newsr ead3.news.atl.e arthlink.net...
Dado wrote:
I have a next situation with the textbox field:
A - B = C

1. How to fill the A fill with the data from my previous recordset ?
Can I do it with the expression builder ?
2. I want that every field I can edit or count, depends on what fileds I
input the value ?

I really don't understand your question. If the textbox is a calculation,
you could enter something like
=[Text0] - [Text1]
or if you want to write a function then
=GetValue([ID])
or create a variable to store it in the declarations section of the code
module
Dim lngVal As Long
and when you save a record, store the value to lngVal. You can do stuff
in the OnCurrent event to stuff that value to the text field.


I was thinking that it was be a nice that access counts me the fiield
(A+B=C),which I didn't insert. So if I insert A and C text field, that
access counts B field. I got counting C field but than i can't insert value
in it.
Feb 27 '06 #3
Dado wrote:
"salad" <oi*@vinegar.co m> je napisao u poruci interesnoj
grupi:%K******* *********@newsr ead3.news.atl.e arthlink.net...
Dado wrote:

I have a next situation with the textbox field:
A - B = C

1. How to fill the A fill with the data from my previous recordset ?
Can I do it with the expression builder ?
2. I want that every field I can edit or count, depends on what fileds I
input the value ?


I really don't understand your question. If the textbox is a calculation,
you could enter something like
=[Text0] - [Text1]
or if you want to write a function then
=GetValue([ID])
or create a variable to store it in the declarations section of the code
module
Dim lngVal As Long
and when you save a record, store the value to lngVal. You can do stuff
in the OnCurrent event to stuff that value to the text field.

I was thinking that it was be a nice that access counts me the fiield
(A+B=C),which I didn't insert. So if I insert A and C text field, that
access counts B field. I got counting C field but than i can't insert value
in it.


I wish your English were better. I have a difficult time understanding
your problem. I don't know what A, B, C is representing... I don't know
if each are separate fields...I don't know what you mean by counting or
inserting. Do you have a friend that can write English that can
describe your problem for us? If yes, I'd start another post and see
what answers you get.

In the mean time, look at DCount(), Dlookup(), DSum(), etc. They may
meet some of your requirements.

Feb 27 '06 #4

"salad" <oi*@vinegar.co m> je napisao u poruci interesnoj
grupi:go******* **********@news read1.news.atl. earthlink.net.. .
Dado wrote:
"salad" <oi*@vinegar.co m> je napisao u poruci interesnoj
grupi:%K******* *********@newsr ead3.news.atl.e arthlink.net...
Dado wrote:
I have a next situation with the textbox field:
A - B = C

1. How to fill the A fill with the data from my previous recordset ?
Can I do it with the expression builder ?
2. I want that every field I can edit or count, depends on what fileds I
input the value ?

I really don't understand your question. If the textbox is a
calculatio n, you could enter something like
=[Text0] - [Text1]
or if you want to write a function then
=GetValue([ID])
or create a variable to store it in the declarations section of the code
module
Dim lngVal As Long
and when you save a record, store the value to lngVal. You can do stuff
in the OnCurrent event to stuff that value to the text field.

I was thinking that it was be a nice that access counts me the fiield
(A+B=C),which I didn't insert. So if I insert A and C text field, that
access counts B field. I got counting C field but than i can't insert
value in it.


I wish your English were better. I have a difficult time understanding
your problem. I don't know what A, B, C is representing... I don't know if
each are separate fields...I don't know what you mean by counting or
inserting. Do you have a friend that can write English that can describe
your problem for us? If yes, I'd start another post and see what answers
you get.

In the mean time, look at DCount(), Dlookup(), DSum(), etc. They may meet
some of your requirements.


A, B & C represents separate texbox fields which I tried to edit according
to a next formula:
A+B=C. But never mind and sorry about my English, I figure out that I must
put code in some event, not in a control source.
Thank you on DCount(), Dlookup(), DSum(),.
Feb 28 '06 #5

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

Similar topics

1
1695
by: Tomomichi Amano | last post by:
Hello. I was wondering how to paste-copy-cut-delete at a SELECTED SPOT in a textBox. Thanks in advance.
1
15734
by: Amadelle | last post by:
Hi all and thanks in advance for your help, I have a problem with capturing the changed value of a text box in a datagrid. The datagrid is populated based on a dataset and I am using template columns to show some of the columns. Few of the columns have textboxes to make them available for editing. I am trying to update the dataset all at...
2
2459
by: Martin Hazell | last post by:
For various reasons, I have had to produce a quick (!) page to edit one column of data in a database with ASP.net. With this being my first foray into ASP.net, I apoligise for any basic erros I have made. The main problem is when setting up an ASP.net datagrid, which I can edit the single value of a specific column. I have wired up the update...
1
1860
by: Amadelle | last post by:
Hi all and thanks in advance for your help, I have a problem with capturing the changed value of a text box in a datagrid. The datagrid is populated based on a dataset and I am using template columns to show some of the columns. Few of the columns have textboxes to make them available for editing. I am trying to update the dataset all at...
0
1441
by: rbutch | last post by:
hey guys got a question. im trying to bind a textbox "at runtime". im creating the conn string, dataset, dataAdapter etc dynamically. and it keeps erroring out. <asp:TextBox ID="txtDay1" Runat="server" TextMode='<%# A39.DataRow%>'></asp:TextBox> now i have no problem doing this if i hard code my connection string, dataadapter, dataset etc...
2
5505
by: donnet | last post by:
Inside my .aspx file, I have a textbox populated with data from a dataset like this: <asp:TextBox text='<%# DataBinder.Eval(Container.DataItem, "Comment")%>' id="CommentText" runat="server" TextMode="MultiLine"></asp:TextBox> </ItemTemplate> </asp:datalist> <asp:button id="EditCommentButton" Text="Edit Comment" Runat="server"></asp:button
14
2067
by: Dan | last post by:
Is this discouraged?: for line in open(filename): <do something with line> That is, should I do this instead?: fileptr = open(filename) for line in fileptr: <do something with line>
0
1995
by: Silver Oak | last post by:
I have a DataGrid in which one of the columns is TemplateColumn that was created dynamically using iTemplate. I would like to have multi-row editing capability on the DataGrid. I'm trying to follow the example in MSDN...
4
5556
by: Finn Stampe Mikkelsen | last post by:
Hi Is there any way to make the textbox property show html, like a textarea on a webpage would?? I have a webapplication that saves an textarea complete with html tags and everything... Now i'm coding a windows application to work with the same data and i need these data to be displayed on an windows form, like they would on the
0
7527
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7726
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7967
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7485
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6052
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5377
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5097
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.