473,498 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assigning Values to TextBox on Form

1 New Member
I have a Form with a subform which also has a subform. The Primary Form represents a medical invoice. The First subform represents the various services associated with the invoice. The subform on the subform(individual services) lists the payments for each individual service and who paid.

On the Primary Form I want to show the Total Cost of Services from the services subform and the Total Payments (from the payments subform) and then calculate the balance due, if any.

The following code worked for putting the total cost of services on the Primary Form - "[FMedicalService].[Form].[SumTotalCost]". I have tried similar code for the payments ("[FPayments].[Form].[TotalPmts]") but it doesn't work.
Can anyone explain why this wouldn't work?

Thanks

Tom
Oct 11 '06 #1
2 1809
PEB
1,418 Recognized Expert Top Contributor
Hi

Try with

"[FMedicalService].[Form]![SumTotalCost]". AND ("[FPayments].[Form]![TotalPmts]")

Best regards

I have a Form with a subform which also has a subform. The Primary Form represents a medical invoice. The First subform represents the various services associated with the invoice. The subform on the subform(individual services) lists the payments for each individual service and who paid.

On the Primary Form I want to show the Total Cost of Services from the services subform and the Total Payments (from the payments subform) and then calculate the balance due, if any.

The following code worked for putting the total cost of services on the Primary Form - "[FMedicalService].[Form].[SumTotalCost]". I have tried similar code for the payments ("[FPayments].[Form].[TotalPmts]") but it doesn't work.
Can anyone explain why this wouldn't work?

Thanks

Tom
Oct 14 '06 #2
MMcCarthy
14,534 Recognized Expert Moderator MVP
[size=2]Try this:[/size]
[size=2][/size]
[FMedicalService].Form![FPayments].[TotalPmts]

This will refer to the control [TotalPmts] on the second subform is run from the main form.

I have a Form with a subform which also has a subform. The Primary Form represents a medical invoice. The First subform represents the various services associated with the invoice. The subform on the subform(individual services) lists the payments for each individual service and who paid.

On the Primary Form I want to show the Total Cost of Services from the services subform and the Total Payments (from the payments subform) and then calculate the balance due, if any.

The following code worked for putting the total cost of services on the Primary Form - "[FMedicalService].[Form].[SumTotalCost]". I have tried similar code for the payments ("[FPayments].[Form].[TotalPmts]") but it doesn't work.
Can anyone explain why this wouldn't work?

Thanks

Tom
Oct 14 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
6054
by: JJ | last post by:
Hi All, I am trying to assign an int value to a textbox. Of course C# doesn't like this so is common to use Convert.toInt32 textboxs with numbers then use Convert.toString assign the values back...
5
6912
by: Robert Phillips | last post by:
I have a Panel control containing a few TextBox controls. The Panel is originally enabled, I enter data into the TextBox controls. When I submit, the Panel is disabled during the PostBack and the...
0
1795
by: Newasps | last post by:
Hi guys, I have a problem with UpdateCommand Event. In tihs event Ä°'m creating required controls to get that controls' values and also get them. But when I try to get updated values I'm getting the...
0
1520
by: Ozer | last post by:
Hi guys, I need some help. In my datagrid's updatecommand event i'm trying to get textboxes values and also do it. But when i update the values in textboxes and fire the event, I can't get the...
6
5176
by: Janaka | last post by:
Help! I have two ListBox controls on my web form. The first one gets populated on entry with values from the DB. I then use JavaScript to copy options from this ListBox to my second one. (I...
3
1663
by: Ricky W. Hunt | last post by:
I came across something by accident; assigning one object to another (as in object1 = object2) allows me to "work on" object2 just like it was object1. For instance, in order to be able to...
6
4615
by: Ian Davies | last post by:
Hi me again, sorry to be a pain. Ive been struggling with this one all day. Hope you can understand whats happening. First my script is below. Have a look and I'll explain at the bottom what it...
1
4760
by: Nightfarer | last post by:
Hello. I have a big trouble using System.Array class (it's the first time I use it) for a software I'm developing. I have a form with a textbox(numbers) and one button (done). Once the number...
0
2850
by: chandrasekhar | last post by:
Hi I have developed a web page with some controls. I put all of them in session variables. I passed this values in the page. When an user enter some data in form fields and click the buttton ,...
0
7121
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
6993
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...
1
6881
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
5456
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,...
1
4899
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...
0
3088
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.