Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Printing with Data Environment

Printing with Data Environment

Scheduled Pinned Locked Moved Visual Basic
databasehelpworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bruceb
    wrote on last edited by
    #1

    I am trying to get the Data Environment to print to a Data Report When calling the Data Report the Data Report appears but I get this error message "Invalid SQL statement; expect 'Delete', 'Insert', 'Procedure'," etc My code to call the Data Report is: Clothing.Commands("Garment").CommandText = " & Text1.text & " GarPrint.Show My SQL Statement in the Data Environment is SELECT ID, CustomerCode, StyleNumber, GarmentDispcrip, ScreenPrint, SizeRange, Embrod, FabricColour, FabricType Can anyone offer any suggestions please :(:|:) bruceb

    H 1 Reply Last reply
    0
    • B bruceb

      I am trying to get the Data Environment to print to a Data Report When calling the Data Report the Data Report appears but I get this error message "Invalid SQL statement; expect 'Delete', 'Insert', 'Procedure'," etc My code to call the Data Report is: Clothing.Commands("Garment").CommandText = " & Text1.text & " GarPrint.Show My SQL Statement in the Data Environment is SELECT ID, CustomerCode, StyleNumber, GarmentDispcrip, ScreenPrint, SizeRange, Embrod, FabricColour, FabricType Can anyone offer any suggestions please :(:|:) bruceb

      H Offline
      H Offline
      Hesham Amin
      wrote on last edited by
      #2

      SELECT ID, CustomerCode, StyleNumber, GarmentDispcrip, ScreenPrint, SizeRange, Embrod, FabricColour, FabricType you did not supply the FROM part of the query should be : Select col1,col2,col3 from table_name

      B 1 Reply Last reply
      0
      • H Hesham Amin

        SELECT ID, CustomerCode, StyleNumber, GarmentDispcrip, ScreenPrint, SizeRange, Embrod, FabricColour, FabricType you did not supply the FROM part of the query should be : Select col1,col2,col3 from table_name

        B Offline
        B Offline
        bruceb
        wrote on last edited by
        #3

        Thanks I tried that and get a new message 'Failed getting Rowset(s)from current data source' One step closer but still no joy :~

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups