473,320 Members | 2,146 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,320 software developers and data experts.

Text Message

lee123
556 512MB
hey all i wanted to finish up a project i was working 7 months ago and now i have time for this. I was looking at this and now that i have seen this again i want to add things to it i have two subforms on this one form there is a total field in one and a field named "dec" in the other that has what he has spent in that month. i want to have a textbox above the (subform) that states that he has reached over a certain amount already for instance:

if he has purchased over $50.00 then the message would say "you have reached over $50.00 worth of items and so on.

my question is:

how do i call this field in the subform named (SFF) to put in the afterupdate event for the textbox named "txtmessage"

lee123
Jan 26 '08 #1
4 1280
jyoung2
32
Generally it would look like
[forms]![Mainform].[SFF]!form.txtmessage_AfterUpdate(0)
Not sure I completly understand the question though The 0 is only needed if there is a (cancel as integer) in the after update and i don't remeber off the top of my head.



hey all i wanted to finish up a project i was working 7 months ago and now i have time for this. I was looking at this and now that i have seen this again i want to add things to it i have two subforms on this one form there is a total field in one and a field named "dec" in the other that has what he has spent in that month. i want to have a textbox above the (subform) that states that he has reached over a certain amount already for instance:

if he has purchased over $50.00 then the message would say "you have reached over $50.00 worth of items and so on.

my question is:

how do i call this field in the subform named (SFF) to put in the afterupdate event for the textbox named "txtmessage"

lee123
Jan 26 '08 #2
lee123
556 512MB
Hi there,
well actually i just need to know how to do this in the afterupdate event. i'm sorry if i made it sound like im calling it in a code but no i wanted to know how the code would be in the afterupdate event. this is what i thought it would be:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Text88_AfterUpdate()
  2.    IF forms! Customer! SFF.dec > 50 then 
  3.         textmessage.caption = "You have reached the 50.00 Mark!
  4. End IF
  5.  
  6. End Sub
but this don't work!
how do i get the textbox to say this.

lee123
Jan 27 '08 #3
jyoung2
32
Expand|Select|Wrap|Line Numbers
  1. Private Sub Text88_AfterUpdate()
  2.    IF forms!Customer!SFF!form.dec > 50 then 
  3.         me.textmessage.caption = "You have reached the 50.00 Mark!
  4. End IF
  5.  
  6. End Sub
Is textmessage a Label? Does this box do anything else?
If you have a label it may be easier to set it up using visibility
Expand|Select|Wrap|Line Numbers
  1. me.textmessage.visibility = true
see bold items for sugestions also watch your spaces you had spaces after each exclamation mark and that will casue the problem. I would use debug mode and see where the code is Breaking.
Jan 28 '08 #4
NeoPa
32,556 Expert Mod 16PB
This (Referring to Items on a Sub-Form) may help.
Feb 2 '08 #5

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

Similar topics

7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
4
by: Maya | last post by:
Hello Everybody, I have an application that receives a text in this format: Received from john by server.com with ESMTP (SMTPD32-8.05) id AD5258A0142; Sun, 01 Aug 2004 02:54:26 +0100 From:...
5
by: Steve S | last post by:
Heres what I want to do...User types into a texbox, clicks a button, the button saves that text to a file. The problem is that when I click the submit button, any changes made to the textbox are...
16
by: Adda | last post by:
If I cycle through the MdiChildActivate event of the parent form I can read text in a textbox on the child mdiform -- console.writeline(Me.ActiveMdiChild.Controls(1).Text) But if I have a sub...
12
by: Frederik Vanderhaeghe | last post by:
Hi, I have a problem converting text to a double. Why doesn't the code work: If Not (txtdocbedrag.Text = "") Then Select Case ddlBedrag.SelectedIndex Case 0 Case 1
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
16
by: mj.redfox.mj | last post by:
Can anyone help? I have a textbox which I'm programatically adding by using the following code: txtTest = New TextBox txtTest.ID = "txtLeft" + cntCount.ToString...
3
by: helraizer1 | last post by:
Hi all, On one page of my site I have a form (code below) with an input textbox with the id "message". You type in your message in this field (as the id suggests) and depending on an option in a...
18
by: Academia | last post by:
I let the use modify the text of a combobox and then I replace the selected item with the new text (in Keyup event). But if he sets the Text property to an empty string ("") that sets the...
11
by: evenlater | last post by:
My db allows the user to send email via CDO. The body of the email is determined in code. I have built an email form with To, CC and Subject lines and a large text box for the body of the message...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.