Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 25th, 2003, 06:29 AM
shals shals is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 shals User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to genrate report for VB form for taking printout

hi
i am facing a problem in generating report for the form in VB.my form contains memo field of my acces database and when i tried generating reports using data enviroment, it gave an error Unspecified data length, and it doesnt displays emmo data fields in report. is there any other way to generate report.
Thanks in advance

Reply With Quote
  #2  
Old July 25th, 2003, 03:46 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
Your errors are not clear. What database are you pulling the data from? How are you setting/formatting the fields that are generating the errors?

Reply With Quote
  #3  
Old July 26th, 2003, 09:22 PM
shals shals is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 shals User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi
i am using Access as database and the fields i am trying to pull is memo type. and the error it generates is that the field type is of unspecified data length
i am uploading my project as attachment and the problem is in report menu item.
Attached Files
File Type: zip purchase.zip (257.9 KB, 397 views)

Reply With Quote
  #4  
Old July 26th, 2003, 10:50 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
In the Visual Basic data environment you are specifying the field in your query and when you are running the report you are getting the error? Or when you are defining the report?

Reply With Quote
  #5  
Old July 27th, 2003, 09:29 PM
shals shals is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 shals User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi
i am getting the error when i am running the report. also i tried to put the p_order_no (Purchase Order Number) and tenderno (Tender Number) fields in the command1 and not in command1_Grouping, then the report is generated but it is not displaying all the records,it is displaying only 2 records?????

Reply With Quote
  #6  
Old July 27th, 2003, 10:41 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
I am unable to load your vbp project. Place static values in place of the dynamic values that you are retrieving and see if the error disappears.
...
Looking at your MS Access DDL I see you have fields that seem to be numeric defined as MEMO.

Reply With Quote
  #7  
Old July 27th, 2003, 11:42 PM
shals shals is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 shals User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
actually we have Purchase number as P/64/a/2003/ thats why i took it as memo field...
also save all the files in a folder named purchase in D drive of ur computer, it will work
anyway thanks for ur efforts
i will think for someother method to generate report..

Reply With Quote
  #8  
Old July 28th, 2003, 07:28 AM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
If the purchase order number will not exceed 255 characters you could change the datatype to text.

Reply With Quote
  #9  
Old July 28th, 2003, 04:06 PM
iamtgo3 iamtgo3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: USA
Posts: 312 iamtgo3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 27 m 43 sec
Reputation Power: 7
Send a message via ICQ to iamtgo3 Send a message via AIM to iamtgo3 Send a message via MSN to iamtgo3 Send a message via Yahoo to iamtgo3
shals - I have a couple examples you could look at.

Print Access Report From VB

and

VB Tutorials Week 15
__________________
George - www.ipdg3.com
Helping Developers and Programmers Find Resources
Forums - Contests - Tutorials - Source Code
ORB - Wireless Site - Online Gear

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > how to genrate report for VB form for taking printout


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway