Article View: borland.public.vdbase.forms
Article #78Menu Problems
From: Ulli Dittmer
Date: Sat, 17 Apr 1999 00:00
Date: Sat, 17 Apr 1999 00:00
27 lines
1415 bytes
1415 bytes
Hello,
I still have a lot of of problems in writing a code with correct
references for a menu file, so that I can call different reports,
subforms or rowsets.
So I first want to ask if there is something like a HOWTO-document
dealing with menus?
Secondly I have a special difficulty in changing the rowset from the
menu of my form.
The form is connected to a single .dbf-file through a datamodule. I just
want to change that file to another with an identic structure.
The code in the call-option of my menu is as follows:
// change rowset from file1 to file2
function CHANGEFILE_ONCLICK
form.datamodref1.ref.query1.sql := 'select * from "file2.dbf"'
form.datamodref1.ref.query1.requery()
return
All I produce with that is an empty rowset. Setting the query.active to
false first and to true again after changing the sql-property did the
same.
So please what is wrong?
Ulli
Technical Details
Message-ID:
<3718C37F.F31150AA@t-online.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 15bdfb,a536c917acd9ac75,start X-Google-Attributes: gid15bdfb,public From: Ulli Dittmer <uca.dittmer@t-online.de> Subject: Menu Problems Date: 1999/04/17 Message-ID: <3718C37F.F31150AA@t-online.de> X-Deja-AN: 467683209 Content-Transfer-Encoding: 7bit X-Accept-Language: de Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.vdbase.forms