473,473 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access 2007 help

I recently installed Access 2007; I've been a long time user of access (from
ver 1 ). The following code snippet is giving me fits-
<<
Select Case myTide
Case 1

Select Case myTideStage
Case 1
MsgBox "Tide Stage must be either After Low or Before High"
Me![cboStage] = " "
>>
This is triggered by the Before Update event on a combo box in a search
form; I' m trying to set the combo box back to blank if my Search criteria
is not met. I alway used "" to do this in past versions of Access
(LinkChildFields, etc) with no problems; with the above, I'm getting a
run-time error 2115..............I also tried Me![cboStage] = 1 and it still
failed....am I missing something here??

any other way to return the combo box to empty?....

-Joe
Jan 11 '07 #1
2 4482
"Joseph Macari" <jm******@cox.netwrote in
news:pl*******************@newsfe21.lga:
I recently installed Access 2007; I've been a long time user of access
(from ver 1 ). The following code snippet is giving me fits-
<<
Select Case myTide
Case 1

Select Case myTideStage
Case 1
MsgBox "Tide Stage must be either After Low or Before
High" Me![cboStage] = " "
>>>
This is triggered by the Before Update event on a combo box in a
search form; I' m trying to set the combo box back to blank if my
Search criteria is not met. I alway used "" to do this in past
versions of Access (LinkChildFields, etc) with no problems; with the
above, I'm getting a run-time error 2115..............I also tried
Me![cboStage] = 1 and it still failed....am I missing something here??

any other way to return the combo box to empty?....
In other Access versions did you use it in BeforeUpdate Event Code? I can
see that it must be very confusing to Access if it's working on a procedure
that confirms changing the value of something to "Cat", and that procedure
tells it to change its value to "Dog".
Depending on whether or not your combo box is bound you might be able to
use the OnClick or AfterUpdate event.

--
lyle fairfield
Jan 11 '07 #2
well, i don't know about A2007, but in previous versions i would use

Me!cboStage.Undo

or

Me!cboStage = Null

hth
"Joseph Macari" <jm******@cox.netwrote in message
news:pl*******************@newsfe21.lga...
I recently installed Access 2007; I've been a long time user of access
(from
ver 1 ). The following code snippet is giving me fits-
<<
Select Case myTide
Case 1

Select Case myTideStage
Case 1
MsgBox "Tide Stage must be either After Low or Before High"
Me![cboStage] = " "
>
This is triggered by the Before Update event on a combo box in a search
form; I' m trying to set the combo box back to blank if my Search
criteria
is not met. I alway used "" to do this in past versions of Access
(LinkChildFields, etc) with no problems; with the above, I'm getting a
run-time error 2115..............I also tried Me![cboStage] = 1 and it
still
failed....am I missing something here??

any other way to return the combo box to empty?....

-Joe


Jan 11 '07 #3

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

Similar topics

1
by: cpajoe2001 | last post by:
I am having an issue and after searching around online for a day and half now and finding others with the same problem but yet no solution to my issue I am looking for help. What i have is ServerA...
3
by: Michael | last post by:
I work with a highly programmed Access database (some 15,000 lines of VBA code, much of it automating data entry on forms -- and believe me, it's very tight code). In Access 97, 2000, 2002, and...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
1
by: rickcross | last post by:
I am trying to use the Access 2007 runtime. I have a program that is fully working in 2007 but when I install the runtime version with same Operating system and Access 2003 installed I have...
0
by: raylopez99 | last post by:
10 years ago, the below was written (see very end, after my signature RL). What, if anything, has changed? I have Access 2003 and soon Access 2007 on a Windows XP Professional or Windows...
5
by: ISUTri | last post by:
We are currently converting from Access 2003 to Access 2007. I have an Access app that is going to be very difficult to convert. This App is used by people that are out in the field and are a...
1
by: ARC | last post by:
I think I made a major blunder, and now Access 2007 no longer opens. I made the mistake yesterday of using the "test" option in wise installer for my Access 2007 runtime app. It actually installed...
5
by: sphinney | last post by:
Basic question: Does anyone know how to go about adding a control to an Access 2007 form that will allow viewing a Word 2007 document? Reason for asking: My office is about to receive 100+/-...
1
by: BL3WC | last post by:
Hi, I'd created a MDE under Access 2003. It is now under testing stage. Some of the users will use Access 2003 runtime and some will use Access 2007 runtime to run this MDE. I installed the...
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
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
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
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...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
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.