/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
SQL problem
Fra : Susan


Dato : 05-11-06 15:43

Hello,

I use a SQL-string to get data from an Access-database.

SQLstring7 = "SELECT * From Tracks ORDER BY Tracks.Tracktitel ASC;"

Now I want to make an extra selection on this string. Only display the
records where the value in the field Volgorde is "00"
(The field Volgorde is a Text-field).

I tried everything but I only get (syntax)errors.

Thanks,

Susan




 
 
Jens Vestergaard (05-11-2006)
Kommentar
Fra : Jens Vestergaard


Dato : 05-11-06 17:06

I news:eikt98$2on$1@news3.zwoll1.ov.home.nl,
skrev Susan <ark312@home.nl>:
> Hello,
>
> I use a SQL-string to get data from an Access-database.
>
> SQLstring7 = "SELECT * From Tracks ORDER BY Tracks.Tracktitel ASC;"
>
> Now I want to make an extra selection on this string. Only display the
> records where the value in the field Volgorde is "00"
> (The field Volgorde is a Text-field).

SQLstring = "SELECT * From Tracks WHERE Volgorde = '00' ORDER BY
Tracks.Tracktitel ASC;"

Note single quotation marks round '00', possible cause of error.

--
mvh
Jens Vestergaard (mailadr i dette indlæg er ikke gyldig!)
Døgnets jernbanenyheder: www.railsoft.dk/medier.asp
Nu med afstemninger!



Søg
Reklame
Statistik
Spørgsmål : 177579
Tips : 31968
Nyheder : 719565
Indlæg : 6409073
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste