Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...On your site I feel quite confident that the contacts and feedback will make my life a little less hectic..."

Geography

Where in the world do Tek-Tips members come from?
blm (Programmer)
1 Jun 12 14:28
I have inherited an older VB6 program whichs calls Access to produce reports. One of the reports that was run today should have had a row of data with a column containing a negative number. The entire row of data did not show up on the report. When I run the query the report uses it does show up. There does not appear to be any conditional formatting associated with the fields or the detail line of the report. I tried formatting the column itself, but this didn't help. I know nothing at all about these Access reports and the programmer that added the reports is no longer here. Can someone point me to where I should look please?
dilettante (MIS)
1 Jun 12 16:31
Doesn't sound like any VB6 issue there at all if you're just automating Access. Maybe check the Access forums for a topic area covering this, there are a number of Access forums here.
tedsmith (Programmer)
2 Jun 12 2:55
Sounds to me like the SQL statement for the VB6 query has a flaw and is generating an error or interpreting that row as not matching when the row with the negative field is encountered.
Also, maybe somewhere it is wrongly formatted to byte (0 to +255) and not an integer or long?
How is the data presented in the vb6 version, in a datagrid or just plain text?
Do you have the original sourcecode for the VB6 program?

Also if there was a WHERE clause in the internal vb6 query criteria like "WHERE MyRec!MyField > 0" then obviously any row that was negative wouldn't show up!
blm (Programmer)
4 Jun 12 7:41
In case anyone has a similar problem, I found the overall report properties by selecting design mode of the report and then View/Properties. The report had a filter limiting the detail to values > 0 on this column.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close