Am trying to execute an Access Macro using a voice command. I don't want File, or Save, I want a custom voice command to run a specific macro.
I found an excellent article at that has me just about there. My problem is where to place the 'match' part of the VB. I have the grammar active, but I don't know where to place the vb to see if a voice command matches one of the grammar list items.
The code I'm talking about from the file is...
strText = Result.PhraseInfo.GetText(0, -1, True) ' what they said
strNumber = Result.PhraseInfo.Properties(0).Value ' which property in the rule was matched
does it go in the Form, in a module. I'm used to running code OnOpen or OnClick, where do you run code 24/7 as you would need to with speech recognition.
Sorry, new to this. Thanks for help.
I found an excellent article at that has me just about there. My problem is where to place the 'match' part of the VB. I have the grammar active, but I don't know where to place the vb to see if a voice command matches one of the grammar list items.
The code I'm talking about from the file is...
strText = Result.PhraseInfo.GetText(0, -1, True) ' what they said
strNumber = Result.PhraseInfo.Properties(0).Value ' which property in the rule was matched
does it go in the Form, in a module. I'm used to running code OnOpen or OnClick, where do you run code 24/7 as you would need to with speech recognition.
Sorry, new to this. Thanks for help.