Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report not printing correct record
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Report not printing correct record
Divers
Thread ID:
00243306
Message ID:
00243306
Vues:
66
Using VFP 5.0 I have created a form that is used to simply view records in a table. Since I used the form wizard I utilized the buttonset that VFP drops on the form during the wizard setup. The problem is that when I use the buttons to maneuver around the table the record pointer is apparently not moving. I have a form that is supposed to print the info from the current record with the following command:

REPORT FORM /reports/gpcalc.frx RECORD RECNO() NOCONSOLE TO PRINTER

No matter which record the form shows me to be on the report still prints the info from the top record in the table.

Next, I created four new buttons and gave them the commands to move to the top of the table, go to the next record, go to the previous record, and to go to the bottom of the table. I used the GO command on these since I figured that would make the pointer move. I have the same problem as with the buttonset. The report still only prints the info for the top record.

I can only get the report to work properly when I use the FIND button from the button set. Using another button that I created to BROWSE the table I confirmed that in that instance the pointer does move.

What am I doing wrong? How do I get the pointer to move? I've used various refresh commands at different places, but that does not seem to work.

Thanks for any help.

Greg Matthews
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform