forcing acCmdFind to search within subform/query

  • Thread starter Thread starter samymelbourne
  • Start date Start date
S

samymelbourne

I am at a wits end. Any and all info greatly appreciated in advance!

I have subform when I click on that subform, which is in datasheet view, to
select all fields (all fields are then highlighted) and then CTRL-F I get the
results wanted.

I would like to tie this process to a button in the main form.

I have tried the follwoing giving focus to the subform:
Me.ViewDBQuery.Form.SetFocus
RunCommand acCmdFind

and other variants but I get the error: There is an invalid error in an
expression Runtime error 2449

However this does not work.
Again Thanks.
 

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

Similar Threads

accmdfind settings 1
Multiple subforms 0
Send subform datasheet with Formating to Excel 2
Subforms 1
Toggle View in SubForm 1
Find Record on Subform 7
subform total behaving strangely 2
Kill Focus on Subform 2

Back
Top