| Subject |
Re: requery problem (semi reason) |
| From |
Heinz Kesting <Nobody@Nowhere.com> |
| Date |
Tue, 21 Jul 2020 22:58:40 +0200 |
| Newsgroups |
dbase.getting-started |
Hi Mervyn
> ***** Start ******
> function PUSHBUTTON1_onClick()
> // Print Batch Report for Batcher
>
> LOCAL FormName,BatchSize
>
> ingnum = 0 //what is this for?
> // Set up printer for report on Batch Ingredients
> form.batch1.rowset.first()
>
> if form.batch1.rowset.first()
> msgbox('No records to print in batch.dbf','Warning',64)
> else
> choosePrinter()
Sorry to disturb again, but if we do it this way Tony will save a lot of
paper ... (gr) ... so I'd prefer it that way
function PUSHBUTTON1_onClick()
// Print Batch Report for Batcher
LOCAL FormName,BatchSize
ingnum = 0 //what is this for?
// Set up printer for report on Batch Ingredients
// form.batch1.rowset.first() // leave this line out
if form.batch1.rowset.first() // at least one row in the set
choosePrinter()
...
else // no rows, no prints ...
msgbox('No records to print in batch.dbf','Warning',64)
endif
Kind regards, and a big smile! Heinz
|
|