Disabling replace function

G

Guest

How should i disable replace function in form. I want users to use find only
but not replace.
 
J

John Vinson

How should i disable replace function in form. I want users to use find only
but not replace.

Set the Allow Edits property of the form to No.

If that messes up your search, set each bound control's Enabled
property to No, and its Locked property to Yes.

John W. Vinson[MVP]
 
G

Guest

Let me be more precise..
While editing form, find fill help in locating desired information. But
replace may accidently corrupt datas. So i just wanted to disable replace but
at same time users have right to change fields individuallly..thanks
 
J

John Vinson

Let me be more precise..
While editing form, find fill help in locating desired information. But
replace may accidently corrupt datas. So i just wanted to disable replace but
at same time users have right to change fields individuallly..thanks

I guess I don't understand the question.

You want users to be able to change fields individually.
You want to prevent users from changing fields.

This is a contradiction. You cannot possibly have both, as stated!

What is it that the users are doing to "corrupt" data? What do you
mean by "find fill help" - that phrase means nothing to me?

John W. Vinson[MVP]
 
B

betwalk

How about building custom search tools and avoiding the Access "find"
feature all together?

just a thought...

Betsy
 
G

Guest

Apologise for mistatement..
I meant to say I dont want user to give replace option but want to give find
option. If suppose they are viewing form and someone gives replace function ,
so it will change all records with replace. But with find option they can
search for things.
Eg if they are searching for particular name. And someone gives replace
Roger with Harry, then it could happen wherever form finds Roger it will
overrite with Harry.
Thanks
 
J

John Vinson

Apologise for mistatement..
I meant to say I dont want user to give replace option but want to give find
option. If suppose they are viewing form and someone gives replace function ,
so it will change all records with replace. But with find option they can
search for things.
Eg if they are searching for particular name. And someone gives replace
Roger with Harry, then it could happen wherever form finds Roger it will
overrite with Harry.

Not if your form is designed correctly, no. Searching for Henry WILL
NOT overwrite Roger.

How are the users trying to do this search? What search provisions
have you made on the form?


John W. Vinson[MVP]
 
G

Guest

Form is designed as follow :
pop up mode : YEs

Data Entry : No
User can scroll arround all records.
Editable : Yes


CTRL F will evoke search criteria. The next tab says Replace Tab. Am
assuming if user usses replace commance, then it may overrite data in all
records. Like if they give Replace X with Y, then it may happen that all
records would be changed.
 
J

John Vinson

Form is designed as follow :
pop up mode : YEs

Data Entry : No
User can scroll arround all records.
Editable : Yes


CTRL F will evoke search criteria. The next tab says Replace Tab. Am
assuming if user usses replace commance, then it may overrite data in all
records. Like if they give Replace X with Y, then it may happen that all
records would be changed.


OK. Thank you. I think I understand now.

One solution would be... *don't use Ctrl F*.

Instead, put controls on the form itself, unbound ones, to do the
searching for the user. Or, open the form with its WhereCondition set
to the criteria that the user wants to see.

Or... train the users that replacing all the data in the database will
replace all the data in the database, and that they'll be required to
retype all the data since the last backup in punishment.

John W. Vinson[MVP]
 
G

Guest

Thanks a lot!

John Vinson said:
OK. Thank you. I think I understand now.

One solution would be... *don't use Ctrl F*.

Instead, put controls on the form itself, unbound ones, to do the
searching for the user. Or, open the form with its WhereCondition set
to the criteria that the user wants to see.

Or... train the users that replacing all the data in the database will
replace all the data in the database, and that they'll be required to
retype all the data since the last backup in punishment.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top