Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D2D4864FCD5 for ; Sat, 9 Aug 2008 12:47:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43339-02 for ; Sat, 9 Aug 2008 12:47:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from alexis.jtlnet.com (alexis.jtlnet.com [69.36.9.81]) by postgresql.org (Postfix) with ESMTP id 16FF264FCC2 for ; Sat, 9 Aug 2008 12:47:03 -0300 (ADT) Received: from [192.168.10.103] (cpe-075-177-154-079.nc.res.rr.com [::ffff:75.177.154.79]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by alexis.jtlnet.com with esmtp; Sat, 09 Aug 2008 11:39:24 -0400 id 0008BBA7.489DBA2C.000039AE Message-ID: <489DBBCA.3040303@dunslane.net> Date: Sat, 09 Aug 2008 11:46:18 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20071019 Fedora/1.0.9-3.fc6 pango-text SeaMonkey/1.0.9 MIME-Version: 1.0 To: oca@mvc.edu.ph CC: pgsql-students@postgresql.org Subject: Re: Problem accessing View in VB6 References: <20080809221516.80lhop5lw04g4oc8@mail.mvc.edu.ph> In-Reply-To: <20080809221516.80lhop5lw04g4oc8@mail.mvc.edu.ph> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/4 X-Sequence-Number: 122 oca@mvc.edu.ph wrote: > > hi, > > I got problem accessing views in Visual Basic 6. > > Dim rsSchedule As New Recordset > With rsSchedule > .Open "SELECT * FROM tvwClassSchedules", dbConn, adOpenDynamic, > adLockReadOnly > .Close > End With > > I got this error: > > ERROR: relation "tvwClassSchedules" does not exist; > Error while executing the query > > this view exist because i can use the view in pgAdmin to display the > records. > > If that is really the name of the view then the name needs to be quoted in double quotes. Postgres folds unquoted names to lower case. cheers andrew