Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Syntax?
Message
De
25/11/1996 14:26:38
 
 
À
22/11/1996 01:10:20
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00012808
Message ID:
00013423
Vues:
34
>>>How do U reference a textbox object within SQL code? I have two grids. A parent and child. I also have two data controls on the screen (hidden) to open the data files. In the data control for the child I want to an SQL statement to reference the first data control for the field Facility ID. I have a textbox which displays facility ID and I am trying to make use of that. Anyway here is something i am trying which does not work.
>>>
>>>Select * from [Well Information] Where [Facility ID] = _
>>>"'"&txtFacility_ID.Text&"'"
>>>
>>>If I could reference the data control (Data1) object directly, that would be straight forward, but I was unable to come up with that synatx either. So, I just added hidden text boxes. This seemed simple...
>>>It is always the easy stuff that is so time consuming...
>>>Any help is appreciated. Steve
>>
>>Figured it out - Added a space before & after "&" and added additional "'"s... Hey does anybody read this VB Thread???
>
>I do all the time. But all our Foxies are too much into Fox over there :)

I read this from time to time (mainly to clear the notice of VB msgs in the ongoing status (g))
anyway if I'm not using fox I much rather use Delphi,C++, perl or whatever than use VB .. (eg)

Arnon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform