home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / 6639 < prev    next >
Encoding:
Text File  |  1992-09-09  |  3.1 KB  |  65 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!osiris.cso.uiuc.edu!weller
  3. From: weller@osiris.cso.uiuc.edu (Bonnie Weller)
  4. Subject: FoxPro2 problems
  5. Message-ID: <BuBMuK.B9K@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Wed, 9 Sep 1992 17:20:42 GMT
  9. Lines: 54
  10.  
  11.  
  12. Hi,
  13.  
  14. I am trying to help a friend who just got Foxpro2 to print out her data.
  15. (Her employer just got the program and she has had NO computer
  16. experience.  I have had some dBASE IV experience)
  17.  
  18. Anyway, here is the scenario.  I hope it is not too convoluted.
  19.  
  20. She has a very large dbf file, called say, A.dbf. Using this file I
  21. created a report called A.frx.  I wanted it to print using a
  22. specific format.  The format allows for 2 records to be printed per
  23. line.  Since file A.dbf is over 5000 records long, I want to print
  24. out only those records which meet certain criteria.  So, using A.dbf, 
  25. I created a query file called A.qpr.  It does the query fine, and when 
  26. I look at it using the browse option in the query window, it shows the 
  27. correct records.  However (you knew there was a however), when I save 
  28. the file to use the report A.frx, and then look at the results in 
  29. preview, it shows the same record 10 times instead of showing me the 10 
  30. different records as it did in browse.  The format is correct though.  
  31. When I go to print it out, it also prints the same record 10 times.  
  32. (Also, the printing is all messed up, instead of getting lines and 
  33. boxes I get weird symbols like @'s and a's.  I suspect this is do to
  34. designating the wrong printer.  I have suggested she ask the fellow who 
  35. installed the program to check on this) 
  36.  
  37. So, question number 1 is, how do I get the results from the query to
  38. print out all the records selected using a pre-designed report form?
  39.  
  40. Question 2,  when I create a dbf file using the results of the
  41. query, say Q.dbf, why can't I print out this file using the report
  42. format?  Whenever I evoke the run report option, it always goes back
  43. to using the A.dbf file even though I originally opened the Q.dbf 
  44. file.     I had hoped to be able to use the A.frx format using several
  45. different files (which have the same database structure of course,
  46. just different data entered in it)  The only way I have found I can
  47. do this is to rename the A.dbf to something else, and then rename the
  48. Q.dbf to A.dbf.  This seems inefficient to me.  There must be a better
  49. way to do this.  
  50.  
  51. Question 3, is there a Foxpro2 book that addresses these types of 
  52. questions?  I looked in the documentation that came with the software, 
  53. plus Chou's "Understanding FoxPro 2", but neither book seemed to 
  54. address this.  It seems to me this is a simple task, and one that 
  55. most people would want to perform at some point, so surely Foxpro can 
  56. do this.  I just can't seem to figure out how.  As usual, I know just 
  57. enough to get me started but never enough to finish the job.
  58.  
  59. Any help would be appreciated.
  60.  
  61. Thanks
  62.  
  63. Bonnie 
  64. weller@osiris.cso.uiuc.edu
  65.