home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1760
Discussions: 188,404, Posts: 2,243,608, Members: 232,630
Old August 16th, 2004, 11:01 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Aug 2004
Posts: 1
SQL - VB6 Open for editing?

Hi All,

I have a number of Crystal Reports where I use VB6 to pass parameters to them and to create executables. These all work fine.

Now I need to update a field on a table to show that the report has been printed so that it is only printed once.

This is the VB code to access the database - Can anyone show me what I need to do to open the table (oeim) and update the field (oeim_printed) for the parameter that is being passed to VB? (The parameter is an invoice number).

Dim Report As New CrystalReport1

Private Sub Form_Load()
Screen.MousePointer = vbHourglass
Report.Database.LogOnServer "p2sodbc.dll", "server1", "MAX112live", "maxmast", "mcs000"
Report.ParameterFields(1).AddCurrentValue (Command)
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault

End Sub

Many thanks for any help.

nomis is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL email extraction query sixf00t4 Webmastering and Programming 2 April 29th, 2003 04:57 PM
AutoCAD 2002 and Visual Basic 6, the nightmare begins! wraithofdark Webmastering and Programming 2 October 28th, 2002 06:52 PM
who/what uses oracle? LinuxNewbie General Tech Discussion 18 September 18th, 2002 11:06 PM
XML to void out the C language? newbie~wan Webmastering and Programming 31 April 2nd, 2002 11:41 AM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
How to transfer music from iPod.. (0)
How to Free Convert FLV to DVD .. (0)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:52 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28