Thread View: pl.comp.bazy-danych.msaccess
2 messages
2 total messages
Started by Michal T.
Wed, 28 Oct 1998 14:10
Problem z SQL w Accessie
Author: Michal T.
Date: Wed, 28 Oct 1998 14:10
Date: Wed, 28 Oct 1998 14:10
29 lines
1395 bytes
1395 bytes
Czesc !!! Mam tabele "konto_306" i sumuje kolumne WN typu double a wynik wstawiam do zmiennej "x". W Power Builder'ze mozna to zrobic tak : //************************ double x select sum(WN) into :x from konto_306; //************************ A jak w Access Basic 97 ? '************************ Dim s as string Dim x as double s = "select sum(WN) into x from konto_306;" DoCmd.RunSql s '************************ Jak zapisac "s" aby wypelnic zmienna x ? Nie chce tego robic do tabeli "x".
Re: Problem z SQL w Accessie
Author: Roman Motyka
Date: Thu, 29 Oct 1998 08:23
Date: Thu, 29 Oct 1998 08:23
12 lines
1067 bytes
1067 bytes
Michal T. napisał(a) w wiadomości: <363725BE.F3505008@ddc.daewoo.com.pl>...
>Czesc !!!
>
>Mam tabele "konto_306" i sumuje kolumne WN typu double
>a wynik wstawiam do zmiennej "x".
>Jak zapisac "s" aby wypelnic zmienna x ?
>Nie chce tego robic do tabeli "x".
Mozesz, najlatwiej uzyc funkcji DSum tj.
x = DSum("WN","konto_306")
Roman
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads