UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> How To Acess Find In Ribbon, Access 2016    
 
   
Hugoj
post Jul 7 2018, 07:39 AM
Post#1



Posts: 16
Joined: 22-August 10



Hi!

I'm using the following code:
Private Sub cmdSok_Click()
Application.CommandBars.ExecuteMso ("Find")
End Sub

I'm using Access 2016 English version but with Swedish Windows 10
This is what I thought I should use when to access the Find command. I have also tried FindNext but doesn't work either.
I don't understand what the problem is.

Hugo
Go to the top of the page
 
GroverParkGeorge
post Jul 7 2018, 08:09 AM
Post#2


UA Admin
Posts: 33,021
Joined: 20-June 02
From: Newcastle, WA


What does happen? What did you expect to happen? Don't describe the code, explain the process you want to implement.


--------------------
Go to the top of the page
 
Hugoj
post Jul 7 2018, 11:56 AM
Post#3



Posts: 16
Joined: 22-August 10



I want a command button on a form.
When the user click the button I want the Find dialog to show up. The one you normally go via Home and then Find.

Hugo
Go to the top of the page
 
GroverParkGeorge
post Jul 7 2018, 06:35 PM
Post#4


UA Admin
Posts: 33,021
Joined: 20-June 02
From: Newcastle, WA


Try this option:


With Me
DoCmd.RunCommand Command:=acCmdFindNext
End with

--------------------
Go to the top of the page
 
Hugoj
post Jul 9 2018, 07:03 AM
Post#5



Posts: 16
Joined: 22-August 10



Tx for the reply but I was not looking for a specific record.
I got this from a friend and that was what I was looking for.

DoCmd.RunCommand acCmdFind
Go to the top of the page
 
GroverParkGeorge
post Jul 9 2018, 08:08 AM
Post#6


UA Admin
Posts: 33,021
Joined: 20-June 02
From: Newcastle, WA


Congratulations on solving the problem.

Continued success with your project.

--------------------
Go to the top of the page
 


Custom Search
RSSSearch   Top   Lo-Fi    17th July 2018 - 09:59 PM