Can you please help with access database queries from excel vba
My algorithm is as follows:
Open connection to access database
Select table1.column1, table1.column2, table1.column3 where table1.column3.value = “x” and table1.column2.value = “y”
Switch Case 1: If no records found matching the criteria from access database
Insert some values etc…
Switch Case 2 : If records found matching the criteria from access database
No action needed
Switch Case 3 : If records found not matching the criteria values from access database
Should display the values in an datagridview in excel vba
Should not allow to insert values
Kindly help me with the code needed from excel vba
Thanks Prabu M