customize find record

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I would like to create something similar to the find record, but customize
it so it searches all records in the form and the options are always set to:
find any part of fild, search all, without an option that allow changes for
the criteria. Also, if this could be made separated from the form, as a new
form or smth.

Thanks for your help,

Ivana
 
You can do something like this behind a button on_click event:

DoCmd.FindRecord, [set parameters here]
you should see what parameters you can set after you put the first comma in.
 
Hey thanks for your response, it seems to be it, but I probably wrote it
wrongly. When I click the button it says: Run-time error '2465'

Telephone directory can't find the field '/' referred to in your expression.
(The / is acctualy a horizontal line).

This is what I wrote:

Private Sub Command0_Click()
DoCmd.FindRecord [,acAnywhere, , acSearchAll, , acAll]

End Sub


Any ideas?

Thanks a lot

Roo said:
You can do something like this behind a button on_click event:

DoCmd.FindRecord, [set parameters here]
you should see what parameters you can set after you put the first comma in.


Ivana said:
Hi,

I would like to create something similar to the find record, but customize
it so it searches all records in the form and the options are always set to:
find any part of fild, search all, without an option that allow changes for
the criteria. Also, if this could be made separated from the form, as a new
form or smth.

Thanks for your help,

Ivana
 
Looking at this further, I think this way of doing it actually requires an
expression or value for what to search for, so it might not be suitable for
your needs afterall.
Did you get the find record dialog box to actually appear ?

Ivana said:
Hey thanks for your response, it seems to be it, but I probably wrote it
wrongly. When I click the button it says: Run-time error '2465'

Telephone directory can't find the field '/' referred to in your expression.
(The / is acctualy a horizontal line).

This is what I wrote:

Private Sub Command0_Click()
DoCmd.FindRecord [,acAnywhere, , acSearchAll, , acAll]

End Sub


Any ideas?

Thanks a lot

Roo said:
You can do something like this behind a button on_click event:

DoCmd.FindRecord, [set parameters here]
you should see what parameters you can set after you put the first comma in.


Ivana said:
Hi,

I would like to create something similar to the find record, but customize
it so it searches all records in the form and the options are always set to:
find any part of fild, search all, without an option that allow changes for
the criteria. Also, if this could be made separated from the form, as a new
form or smth.

Thanks for your help,

Ivana
 

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

Back
Top