Commond Button

kavehrad

New member
Local time
Today, 23:48
Joined
Jun 14, 2020
Messages
17
Hi everybody!
I want to have a command button to search in a specified field ( like: Name ) in my form. what is the macro code to this button?

Thanks:)
 
Maybe a bit improper but, "Did you try to find or create something like a search?" People here try to help, not do your work. You will not learn anything if you don't try to invent stuff yourself. Google or Bing is your biggest friend and off course forums like this one.
 
Fastest way is to use a combobox with your field as source.
A situation that I use quit often is: a subform showing a table, typing in a textbox rolls-up my table with the result. It works with a sql query.
 
Docmd.RunCommand acCmdFind
 
place the cursor on the field you want to search, then press your search button.
you must experiment on the combo choices which best fit your need.
 

Users who are viewing this thread

Back
Top Bottom