data report runtime code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KAMALAKAR
    New Member
    • Oct 2006
    • 3

    data report runtime code

    I HAVE A FOXPRO DATABASE,AS IN FOXPRO WE GENERATE REPORT BY TAKING DIRECT INPUT FROM THE USER.NOW,I WOULD LIKE TO DO THE SAME IN VB6.I WOULD TAKE INPUT FROM THE USER(Eg:empno = 99999) and want to generate report using datareport which is already created
  • samvb
    New Member
    • Oct 2006
    • 228

    #2
    Originally posted by KAMALAKAR
    I HAVE A FOXPRO DATABASE,AS IN FOXPRO WE GENERATE REPORT BY TAKING DIRECT INPUT FROM THE USER.NOW,I WOULD LIKE TO DO THE SAME IN VB6.I WOULD TAKE INPUT FROM THE USER(Eg:empno = 99999) and want to generate report using datareport which is already created

    do this: have a command under connection1 for eg. the cmd src be sql:
    select id,name from members where (memid= ?)

    in the parameters tab, make the name of the parameter (Default name is ? which is invalid) to something like mymemberid.

    From your vb from pass memid to the cmd like this
    dataenvrionment name.cmdname memberid
    datareport.show


    hope that helps u out.

    sam

    Comment

    • KAMALAKAR
      New Member
      • Oct 2006
      • 3

      #3
      thank you ,i have got it.still an error "rowset cannot be ..." is popping up. i'll handle it .thank you

      Comment

      Working...