473,441 Members | 1,826 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,441 software developers and data experts.

Setting an alert on a form

111 100+
On my form i have a button that opens up a new form for adding notes. Next to the button i have a text box that i want to display "New Notes!" when someone adds new notes. How would i go about doing this? The notes form and the original form are based on two different tables linked by GroupNumber. I'm guessing i have to set my OnOpen event of the original form to check if new notes have been added since the last time they opened the form, but im not sure how to code this. Am i on the right track at least?
Aug 27 '07 #1
1 1434
FishVal
2,653 Expert 2GB
On my form i have a button that opens up a new form for adding notes. Next to the button i have a text box that i want to display "New Notes!" when someone adds new notes. How would i go about doing this? The notes form and the original form are based on two different tables linked by GroupNumber. I'm guessing i have to set my OnOpen event of the original form to check if new notes have been added since the last time they opened the form, but im not sure how to code this. Am i on the right track at least?
Hi, Neekos.

There are at least two approaches.
  • add to Notes table boolean field (let us say [blnViewed]) indicating a note was/wasn't viewed; this case you can check whether there are records where [blnViewed]=False on Form_Open event and either update all records to [blnViewed]=True on Form_Close event or update [blnViewed] for a particular record when it is actually opened in notes form handling Form_Current event
  • add to Notes table datestamp field (m/d/y h/s) (let us say dteNoteDateStamp), log in separate table main form openings as datestamp (let us say dteFormOpenDateStamp) and on Form_Open event check whether there are records where dteNoteDateStamp>Max(dteFormOpenDateStamp)

To my mind the first solution is more flexible.
Aug 27 '07 #2

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

Similar topics

1
by: relaxedrob | last post by:
Howdy All! I am really stuck with this one - I want to completely create a table within JavaScript and insert it into the document, with onMouseOut and onMouseOver handlers in the table rows. ...
2
by: J Krugman | last post by:
I have a form with a couple of submit buttons, plus a "pseudolink" that is also supposed to submit the form; the submitted form data feeds to a CGI script. The two submit buttons have the name...
2
by: Hasan Ammar | last post by:
Is it possible to set up hotkeys using onkeypress? I know it can be done with the usual alphanumeric keys, but what about function keys? or using ctrl/alt combinations? Does anybody have a...
7
by: danny | last post by:
Hello everyone, How can I go about setting a number of variables using a table which will have the variable names to be declared in one table. The data to be assigned will reside in another. As...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
7
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+...
3
by: Steve Yerkes | last post by:
There seems to be way too much confusion over how to set focus on the a field using a field validator. I looked all over the web and found people trying to do this, but not getting anywhere. There...
3
by: keith.schincke | last post by:
I know I must be missing something basic. I am developing of Firefox 1.5 and am trying to to send a basic QUERY_STRING to a test CGI that will print the data back to the brower: I can print my...
8
by: Brad Isaacs | last post by:
Good morning friends, I am working with Visual Studio 2005, ASP.NET 2.0 I am working with the Login controls provided my .NET 2.0, trying to make the Login1 control UserName textbox obtain...
3
by: ll | last post by:
I'm working with the script below which works with FF but not with IE 7. To clarify, the part of the code which isn't working in IE 7 is putting the value of variable y in the "totalString" input...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
1
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,...
0
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...

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.