Jump to content

Recommended Posts

Posted

hello all,

i need help for command query to access my database access.

for example:

$result = $dbDatatBase.OpenRecordset("Select * From db")

system will result all data on db

and if

$result = $dbDatatBase.OpenRecordset("Select * From db where tenant = 'test'")

system will result all data on db with record name tenant and value test

but how if i have inputbox like below :

$search = GUICtrlCreateInput("",270, 50, 100, 20)

what query i must command for system to result all data on db with record name tenant and value as value captured by above inpubox?

i have try with below command but system cannot work

$result = $dbDatatBase.OpenRecordset("Select * From db where tenant = $search")

sorry for my bad english, hope u all can understand

Posted

First, please post in the appropriate forum, as this has nothing to do with GUIs: General Help and Support

All you need to do is assemble the string with the "&" concatenate operator:

$result = $dbDatatBase.OpenRecordset("Select * From db where tenant='" & $search & "'")

:mellow:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...