🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.vdbase.forms
1 messages
1 total messages Started by Larry Greeff Fri, 12 Mar 1999 00:00
AUTOINC Field Not being found in Search
#97
Author: 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
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