I'm trying to write a script for an address handling form
and not having much luck with it. I hope someone out there
may have already dealt with this problem.
We have a table of people with case ID #s and their current addresses.
We also have a table set up to store old addresses as the people
move to new ones. When someone moves, we put her formerly new
address into the corresponding fields in the OldAddr table.
I have a form with Table A (new) as the master, linked to Table B (old)
via the caseID number. I've tried to set up a button that will
take the current ID value, and run a query to check if the B fields
are empty and if so change the B fields to the contents of that
person's A table fields. I've tried the following method:
---------------
method pushbutton(var eventInfo Event)
var
r Report
q Query
s String
endVar
s = caseid.value
q = Query
TYPE: DBASE
ANSWER: :PRIV:ANSWER.DBF
P:\\P9238\\Z99A.DBF | caseid | afn | aln |
| _~s | _fn | _ln |
P:\\P9238\\Z99B.DBF | caseid | bfn | bln |
| _~s | empty, changeto _fn | empty, changeto_ln|
; for simplicity, only first & last names are involved here.
EndQuery
q.executeQBE("P:\\P9238\\ZREZ1.DBF")
endMethod
-----------------
This passes the syntax and compile checks, but when run it gives
this error:
"an error was triggered in the executeQBE method
by an object of Query type
Details:
Operating system network error
table: p:\\p9238\\z99a.dbf
file: p:\\p9238\\z99a.dbf"
Any suggestions on what I'm missing? I don't know where
to look to fix an OS network error. I'm not well acquainted
with any OPAL beyond the very basics.
Thanks very much.
(Oh, the setup is Win95, Paradox 8, Novell network.)
--
Star Trek: SF for people with good intentions
Babylon 5: SF for people with good attention spans.