J
johnny
I tray to make a code that schould list from a datebase
named "bil data" in this rutine;
Private Sub Kommandoknap31_Click()
Dim db
Dim SQL
Dim rst
SQL = "SELECT [BIL DATA].[BIL NR], [BIL DATA].DATO,
[BIL DATA].DAG, [BIL DATA].LAND, [ORDRE DATA].[ORDRE NR],
[ORDRE DATA].ORDREGIVER, [ORDRE DATA].AFSENDER, [ORDRE
DATA].TILBRINGER, [ORDRE DATA].MODTAGER, [ORDRE
DATA].MÆRKNING, [ORDRE DATA].[MANKO/OVERTAL], [ORDRE
DATA].INDHOLD, [ORDRE DATA].KVITERET, [ORDRE DATA].[FÆRDIG
LÆSSET KL], [ORDRE DATA].[LÆSSET AF], [ORDRE
DATA].BEMÆRKNING, [ORDRE DATA].[KONTROLERET AF], [ORDRE
DATA].ARKIVER, [ORDRE DATA].[ANTAL/KG] FROM [BIL DATA]
INNER JOIN [ORDRE DATA] ON [BIL DATA].Id = [ORDRE DATA].Id
WHERE ((([ORDRE DATA].ARKIVER)=No));"
Debug.Print ; DATO; BIL_NR
End Sub
I got only the date from the field "dato" and only once
time. The tabel has a lot of dates in the field "dato".
Wath have I done wrong ???
named "bil data" in this rutine;
Private Sub Kommandoknap31_Click()
Dim db
Dim SQL
Dim rst
SQL = "SELECT [BIL DATA].[BIL NR], [BIL DATA].DATO,
[BIL DATA].DAG, [BIL DATA].LAND, [ORDRE DATA].[ORDRE NR],
[ORDRE DATA].ORDREGIVER, [ORDRE DATA].AFSENDER, [ORDRE
DATA].TILBRINGER, [ORDRE DATA].MODTAGER, [ORDRE
DATA].MÆRKNING, [ORDRE DATA].[MANKO/OVERTAL], [ORDRE
DATA].INDHOLD, [ORDRE DATA].KVITERET, [ORDRE DATA].[FÆRDIG
LÆSSET KL], [ORDRE DATA].[LÆSSET AF], [ORDRE
DATA].BEMÆRKNING, [ORDRE DATA].[KONTROLERET AF], [ORDRE
DATA].ARKIVER, [ORDRE DATA].[ANTAL/KG] FROM [BIL DATA]
INNER JOIN [ORDRE DATA] ON [BIL DATA].Id = [ORDRE DATA].Id
WHERE ((([ORDRE DATA].ARKIVER)=No));"
Debug.Print ; DATO; BIL_NR
End Sub
I got only the date from the field "dato" and only once
time. The tabel has a lot of dates in the field "dato".
Wath have I done wrong ???