I am currently working with a Dry Cleaning software program. In the screen where a user checks the customer out and receives payment. Here is the code:
Nothing is showing up in my grid. I've checked by debugging it with a "CHANGE" Command into the command window after the code has been ran. The table contains the records that meet the criteria, but it is not loading into the table. Please help! and Thanks in advance!
Code:
**INIT**
thisform.label1.Caption=ALLTRIM(Name)+" # "+ALLTRIM(PPhone)
USE tempo SHARED
nRecs=RECCOUNT()
FOR x=1 TO nRecs && I know there are better ways, like using SCAN, but I find this easier for me.
WAIT WINDOW "Parsing Record "+TRANSFORM(x)+" of "+TRANSFORM(nRecs) TIMEOUT .2
USE tempo shared
GOTO x
IF tempo.custno=nCustno AND ALLTRIM(UPPER(tempo.hit))!="X" && "X" defines that an order is already checked out
invno=tempo.invcno
stat=tempo.stat
custno=tempo.custno
totla=tempo.total
USE temptempo
APPEND BLANK
GO bottom
replace temptempo.invcno WITH invno,;
temptempo.stat WITH stat,;
temptempo.custno WITH custno,;
temptempo.total WITH totla
ENDIF
ENDFOR
thisform.grid1.RecordSourceType= 0
thisform.grid1.RecordSource="temptempo.dbf"
Nothing is showing up in my grid. I've checked by debugging it with a "CHANGE" Command into the command window after the code has been ran. The table contains the records that meet the criteria, but it is not loading into the table. Please help! and Thanks in advance!