Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi everyBody, I Want to know ho

Status
Not open for further replies.

nadjib

Programmer
May 14, 2003
23
0
0
CA
Hi everyBody,

I Want to know how can I change, or accede (from VBA) to the :
form -> Propriety -> Data -> Sourrce -> SQLCODE

In fact, I want to make dynamic my SQLCODE Query. So I want change :

SOURCE -> SQLCODE = SELECT [Forms name].[fields name] FROM [Forms name];"

To
'at each time I insert the name of the table
strSQL1 = InputBox$(TitreInputBox, "Acquisition of data")
SQLCODE= "SELECT [" & StrSQL1 & "].NumSugg FROM [" & StrSQL1 & "];"


So I want to know the syntax must I use to excute the SQLCODE

cordially

nadjib
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top