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

Can anyone help me turn this into code?

N J
Hi,

I can't figure out how to put this into code, any help would be
great..thanks. Basically, if counter is over 100 then show msgbox then
close.

If txt.Counter > 100 Then msgbox "my message" docmd.close

--

Kind Regards,
Customer Services
P.S. For us to answer your emails efficiently, please always include the
original message. Thank you.
Nov 13 '05 #1
2 1250
If Me.txtCounter > 100 Then
MsgBox "My Message"
DoCmd.Close acForm, Me.Name, acSaveNo
End If

Change txtCounter to the actual name of your textbox or replace
Me.txtCounter with the actual name of a variable if it is a variable in the
code and not a control on the form.

--
Wayne Morgan
MS Access MVP
"N J" <bl*************@blueyonder.co.uk> wrote in message
news:19*****************@fe2.news.blueyonder.co.uk ...
Hi,

I can't figure out how to put this into code, any help would be
great..thanks. Basically, if counter is over 100 then show msgbox then
close.

If txt.Counter > 100 Then msgbox "my message" docmd.close

--

Kind Regards,
Customer Services
P.S. For us to answer your emails efficiently, please always include the
original message. Thank you.

Nov 13 '05 #2
N J
"Wayne Morgan" <co***************************@hotmail.com> wrote in message
news:Sp***************@newssvr24.news.prodigy.net. ..
If Me.txtCounter > 100 Then
MsgBox "My Message"
DoCmd.Close acForm, Me.Name, acSaveNo
End If

Change txtCounter to the actual name of your textbox or replace
Me.txtCounter with the actual name of a variable if it is a variable in
the code and not a control on the form.

--
Wayne Morgan
MS Access MVP
"N J" <bl*************@blueyonder.co.uk> wrote in message
news:19*****************@fe2.news.blueyonder.co.uk ...
Hi,

I can't figure out how to put this into code, any help would be
great..thanks. Basically, if counter is over 100 then show msgbox then
close.

If txt.Counter > 100 Then msgbox "my message" docmd.close

--

Kind Regards,
Customer Services
P.S. For us to answer your emails efficiently, please always include the
original message. Thank you.


Cheers.
Nov 13 '05 #3

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

Similar topics

162
by: Isaac Grover | last post by:
Hi everyone, Just out of curiosity I recently pointed one of my hand-typed pages at the W3 Validator, and my hand-typed code was just ripped to shreds. Then I pointed some major sites...
6
by: ok | last post by:
I tried escape, but it is only good for the special ones like : / ' space etc. I want to turn every charactor into %xx then document.write them. I wonder if i can double % them so I can turn @...
10
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate,...
3
by: ilushn | last post by:
Help! I am having a very aggervating problem with Access. Call me lazy, but I like to copy and paste addresses from Access into microsoft work, like for sending letters where I only need about 3...
3
by: kolja2003 | last post by:
Hi, Is there somewhere the way to turn the any arbitrary DLL into control which I can put in my ToolBox and use further in my RAD development. I mean the way to create new control or component...
66
by: QuantumG | last post by:
Decompilation is the process of recovering human readable source code from a program executable. Many decompilers exist for Java and .NET as the program executables (class files) maintain much of...
6
by: bimal.eranda | last post by:
Hi! I have some problems in the following code. #include <windows.h> #include<iostream.h> void main(){ LPSTR x=""; long y=125;
169
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
0
by: jehugaleahsa | last post by:
Try this instead: // T - the type you are attempting to retrieve. // o - the data that you want to turn into a T T get<T>(object o) { // handle nulls - turns Nullables into null, reference...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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...
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...

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.