🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.forms
Article #97

AUTOINC Field Not being found in Search

#97
From: Larry Greeff
Date: Fri, 12 Mar 1999 00:00
19 lines
1195 bytes
Hope someone can help.  I am trying to do a query on a table that has an
autoincremental  field as the primary key in order to build a description
based on two of the queries fields concatenated together.

When I run the below function no records are found.  Do I have to change the
"type" of the field or what?
function PROGRAM_NO1_onChange
      local x, q, lfound,
      x = this.form.DATAMODREF1.ref.query1.rowset
      lv_program_no = x.fields["PROGRAM_NO"].value
      lv_planting_no = ""
      q = null
      q = new query()
      q.sql = [SELECT * FROM "C:\production\prodprog\crop_programs.dbf"
crop_programs where program_no = ]  + lv_program_no + ']'
      q.active = true
       /*do the rest */
Thanks
Larry Greeff
Technical Details
Message-ID: <7ci93b$h710@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 15bdfb,f97ef6329d24dc7a,start
X-Google-Attributes: gid15bdfb,public
From: "Larry Greeff" <zahor9vr@ibmmail.com>
Subject: AUTOINC Field Not being found in Search
Date: 1999/03/12
Message-ID: <7ci93b$h710@forums.borland.com>
X-Deja-AN: 455118312
Organization: Hortico Produce - Zimbabwe
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.vdbase.forms