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

default settings for search and replace dialogbox

jj
Hi NG

I have a form, where I can activate the search and replace dialogbox when
pressing a button.

My problem is that the dialogbox opens with the default that it should
search for full match only, and I want it to open with default "a part of
field".

The VBA used is:
docmd.domenuItem acformbar, acEditmenu, 10, , acMenuVer70

How do I change it to default "A part of the field"?

Thanks in advance
Nov 13 '05 #1
3 8757
Hi.

You won't be able to control these settings with VBA 4.0 code, which is what
Access 95 uses. (acMenuVer70 is for version 7.0, or Access 95, and
DoMenuItem has been deprecated since Access 97.)

To apply the search option in VBA code, use the DoCmd.FindRecord( ) method.
Use acAnywhere as the second argument of this method to search in any part
of the field.

However, it would probably be easiest if you just changed the default option
setting for Access. To do so, select the Tools -> Options menu to open the
"Options" dialog window. Select the "Edit/Find" tab. Select the "General
Search" option button at the top left of the window, then the "OK" button to
close the window. Access will continue to use your current setting that
you've already manually applied in the "Find And Replace" window (whether
it's "Any Part of Field," "Whole Field," or "Start of Field") for any future
search during your current session. However, the next time you open the
database in Access, it will use your new default "Any Part of Field" for
searches, so you won't have to apply it manually again.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
"jj" <jj@get2net.dk> wrote in message
news:41*********************@dread11.news.tele.dk. ..
Hi NG

I have a form, where I can activate the search and replace dialogbox when
pressing a button.

My problem is that the dialogbox opens with the default that it should
search for full match only, and I want it to open with default "a part of
field".

The VBA used is:
docmd.domenuItem acformbar, acEditmenu, 10, , acMenuVer70

How do I change it to default "A part of the field"?

Thanks in advance

Nov 13 '05 #2
jj
Great - thanks alot!
"'69 Camaro" <Fo**************************@Spameater.orgZERO_SP AM> wrote in
message news:sha%c.6683$vI2.4502@trnddc02...
Hi.

You won't be able to control these settings with VBA 4.0 code, which is what Access 95 uses. (acMenuVer70 is for version 7.0, or Access 95, and
DoMenuItem has been deprecated since Access 97.)

To apply the search option in VBA code, use the DoCmd.FindRecord( ) method. Use acAnywhere as the second argument of this method to search in any part
of the field.

However, it would probably be easiest if you just changed the default option setting for Access. To do so, select the Tools -> Options menu to open the "Options" dialog window. Select the "Edit/Find" tab. Select the "General
Search" option button at the top left of the window, then the "OK" button to close the window. Access will continue to use your current setting that
you've already manually applied in the "Find And Replace" window (whether
it's "Any Part of Field," "Whole Field," or "Start of Field") for any future search during your current session. However, the next time you open the
database in Access, it will use your new default "Any Part of Field" for
searches, so you won't have to apply it manually again.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
"jj" <jj@get2net.dk> wrote in message
news:41*********************@dread11.news.tele.dk. ..
Hi NG

I have a form, where I can activate the search and replace dialogbox when pressing a button.

My problem is that the dialogbox opens with the default that it should
search for full match only, and I want it to open with default "a part of field".

The VBA used is:
docmd.domenuItem acformbar, acEditmenu, 10, , acMenuVer70

How do I change it to default "A part of the field"?

Thanks in advance


Nov 13 '05 #3
You're welcome!

Gunny
"jj" <jj@get2net.dk> wrote in message
news:41*********************@dread11.news.tele.dk. ..
Great - thanks alot!
"'69 Camaro" <Fo**************************@Spameater.orgZERO_SP AM> wrote in message news:sha%c.6683$vI2.4502@trnddc02...
Hi.

You won't be able to control these settings with VBA 4.0 code, which is what
Access 95 uses. (acMenuVer70 is for version 7.0, or Access 95, and
DoMenuItem has been deprecated since Access 97.)

To apply the search option in VBA code, use the DoCmd.FindRecord( )

method.
Use acAnywhere as the second argument of this method to search in any part
of the field.

However, it would probably be easiest if you just changed the default

option
setting for Access. To do so, select the Tools -> Options menu to open

the
"Options" dialog window. Select the "Edit/Find" tab. Select the "General Search" option button at the top left of the window, then the "OK" button to
close the window. Access will continue to use your current setting that
you've already manually applied in the "Find And Replace" window

(whether it's "Any Part of Field," "Whole Field," or "Start of Field") for any

future
search during your current session. However, the next time you open the
database in Access, it will use your new default "Any Part of Field" for
searches, so you won't have to apply it manually again.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
"jj" <jj@get2net.dk> wrote in message
news:41*********************@dread11.news.tele.dk. ..
Hi NG

I have a form, where I can activate the search and replace dialogbox

when pressing a button.

My problem is that the dialogbox opens with the default that it should
search for full match only, and I want it to open with default "a part of field".

The VBA used is:
docmd.domenuItem acformbar, acEditmenu, 10, , acMenuVer70

How do I change it to default "A part of the field"?

Thanks in advance



Nov 13 '05 #4

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

Similar topics

22
by: Phlip | last post by:
C++ers: Here's an open ended STL question. What's the smarmiest most templated way to use <string>, <algorithms> etc. to turn this: " able search baker search charlie " into this: " able...
5
by: pembed2003 | last post by:
Hi all, I need to write a function to search and replace part of a char* passed in to the function. I came up with the following: char* search_and_replace(char* source,char search,char*...
3
by: C# Learner | last post by:
Is it possible to set a command button to the "default" button of the form? Here's an example of what I mean -- press Start -> Run. Notice that the "OK" button has a dark rectangle around it,...
32
by: tshad | last post by:
Can you do a search for more that one string in another string? Something like: someString.IndexOf("something1","something2","something3",0) or would you have to do something like: if...
1
by: foreman | last post by:
Hello Everybody: I am trying out DialogBox, and I have been trying to press the OK Button on the dialogbox hoping I can receive the OK DialogResult to Main Form. Below is my OK button click...
3
by: majid | last post by:
When i show a webform as a dialogbox using showModalDialog script any postback event in dialogbox cause a new window pops up . How can i control the postback?
6
by: Robert_5032 | last post by:
when our users press "Search and Replace" all is fine exept that they ALWAYS have to change the criteria "Match the hole field" to "Part of the field" (ruffly spelled...(swedish lang)). -Is there...
9
by: joemo2003 | last post by:
Please help. I created a custom dialogbox name "DialogBox". What i want is input values to the dialogbox, and those values appear on a textbox in Visio. After i creat the textbox and the dialogbox,...
10
Shakss2
by: Shakss2 | last post by:
I have a form, where I can activate the search and replace dialogbox when pressing a button. My problem is that the dialogbox opens with the default that it should search for full match only,...
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?
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
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
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...

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.