Right here we go.
I have managed to import text files in to a table using some simple script which appends the table everytime a new textfile is available.
My problem is that I want to run 2 dialog boxes which ask for a contract & structure number before sending you to a form which will display the information (which is enertaed by a query) on the selected contract/structure only.
I have managed to do this by storing the search results in a seperate table from the master table. But because of this any ammendments made to the data on the form are not recorded in the master table.
Below is the script which runs my dialog box search:-
method pushButton(var eventInfo Event)
var
strFormName String
fHandle Form
cont4 query
contnum number
strnum number
strReportName string
rHandle report
endvar
contnum = 0
contnum.view("Enter A Contract Number:-"
strnum = 0
strnum.view("Enter A Structure Number:-"
cont4=Query
PartReport.DB | Cont# | Str# | MARK | QUANTITY | SECTION | GRADE |
| Check =~contNum | Check =~strNum | Check P.. | Check | Check | Check |
PartReport.DB | LENGTH | AREA | NHG | Plate ID |
| Check | Check | Check | Check |
EndQuery
If not executeQBE(cont4,"cont4.QBE" then
errorshow()
endif
strFormName = "Chris Examp.fsl"
if NOT fHandle.open(strFormName) then
msgStop("Error opening " + strFormName, "Please make sure the form exists and try again."
endIf
endMethod
If anybody can suggest where I am going wrong or an alternative way around it please let me know.
Thanks,
Woody.
I have managed to import text files in to a table using some simple script which appends the table everytime a new textfile is available.
My problem is that I want to run 2 dialog boxes which ask for a contract & structure number before sending you to a form which will display the information (which is enertaed by a query) on the selected contract/structure only.
I have managed to do this by storing the search results in a seperate table from the master table. But because of this any ammendments made to the data on the form are not recorded in the master table.
Below is the script which runs my dialog box search:-
method pushButton(var eventInfo Event)
var
strFormName String
fHandle Form
cont4 query
contnum number
strnum number
strReportName string
rHandle report
endvar
contnum = 0
contnum.view("Enter A Contract Number:-"
strnum = 0
strnum.view("Enter A Structure Number:-"
cont4=Query
PartReport.DB | Cont# | Str# | MARK | QUANTITY | SECTION | GRADE |
| Check =~contNum | Check =~strNum | Check P.. | Check | Check | Check |
PartReport.DB | LENGTH | AREA | NHG | Plate ID |
| Check | Check | Check | Check |
EndQuery
If not executeQBE(cont4,"cont4.QBE" then
errorshow()
endif
strFormName = "Chris Examp.fsl"
if NOT fHandle.open(strFormName) then
msgStop("Error opening " + strFormName, "Please make sure the form exists and try again."
endIf
endMethod
If anybody can suggest where I am going wrong or an alternative way around it please let me know.
Thanks,
Woody.