🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1447

Re: Opening tables at runtime

#1447
From: Saveli Kossenko
Date: Sat, 27 Dec 1997 00:00
29 lines
1527 bytes
If you want to open Table "on the fly" do this:
Form.Query1.SQL="SELECT * FROM MYTABLE"
    or
Form.Query1.SQL="SELECT * FROM "+ sMYTABLE
    and
Form.Query1.Active=.t.

In your example you have to create two queries and change SQL string of
second query "on the fly"...
But may be you can play with the Filter property of the second query...

With best Regards,
Saveli Kossenko

Erich greiner wrote in message <34A487DB.225F@t-online.de>...
>New with VdB7 I have problems opening databases at runtime.
>Converting my application, I have a form which open a master table
>at page 1 for editing datas and also shows in a listbox the table
>names of related tables for selecting.
>At form page 2 I like to open this related table, selecting from a
>second listbox the reccounts to work on it.
>I understand that I have to use queries for linking tables to the
>form.
>Previously I stored the field content (table name) in a variable
>and used the makro operator "&" to open it, but this is not working.
>Anybody can help me?
>Thanks
>Erich Greiner
Technical Details
Message-ID: <684jc8$nic2@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34A487DB.225F@t-online.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,a86db8beb830ff10
X-Google-Attributes: gidff5a1,public
From: "Saveli Kossenko" <Saveli@iName.com>
Subject: Re: Opening tables at runtime
Date: 1997/12/27
Message-ID: <684jc8$nic2@forums.borland.com>
X-Deja-AN: 310669368
References: <34A487DB.225F@t-online.de>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: None
Newsgroups: borland.public.vdbase.data.sql