Click here to Skip to main content
15,916,601 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Delete Database entries!!! Pin
Shameel12-Nov-09 23:02
professionalShameel12-Nov-09 23:02 
QuestionBroken Publish Link Pin
Curtbroo12-Nov-09 7:20
Curtbroo12-Nov-09 7:20 
AnswerRe: Broken Publish Link Pin
Curtbroo12-Nov-09 7:22
Curtbroo12-Nov-09 7:22 
QuestionMDIParent confusion Pin
EliottA12-Nov-09 2:57
EliottA12-Nov-09 2:57 
AnswerRe: MDIParent confusion Pin
dan!sh 12-Nov-09 3:48
professional dan!sh 12-Nov-09 3:48 
AnswerRe: MDIParent confusion Pin
The Man from U.N.C.L.E.12-Nov-09 5:17
The Man from U.N.C.L.E.12-Nov-09 5:17 
AnswerRe: MDIParent confusion Pin
Shameel12-Nov-09 23:05
professionalShameel12-Nov-09 23:05 
QuestionCrystal Report Pin
magedhv12-Nov-09 2:06
magedhv12-Nov-09 2:06 
Hi

I need to know the Crystal report4.6 and 9 and 10 code to display the report from VB6

actually i have wrote the below code and it displays the report but not results is not right however it was right when i was designing the report

the code is
Dim cn1 As New ADODB.Connection

cn1.Open ("provider=SQLOLEDB;server=CAI-MAGEDH-DT;database=Att;user id=-;pwd=-")

cn1.Execute "drop view CAR"

cn1.Execute "Create View CAR as  SELECT Badgeholder ,Count(DISTINCT bdate) as Days ,9 as rate, Count(DISTINCT bdate) * 9 as Total from Newatt n inner join Bnames b on n.badgeholder  = b.Snames group by badgeholder"











Dim reportfile As New CRAXDRT.Application



If cn.State = 1 Then cn.Close

If rs.State = 1 Then rs.Close



cn.Open ("provider=SQLOLEDB;server=CAI-MAGEDH-DT;database=Att;user id=-;pwd=-")



rs.ActiveConnection = cn

rs.CursorType = adOpenKeyset

rs.LockType = adLockOptimistic



rs.Source = "SELECT * FROM NewAtt"

rs.Open









Dim reports As report



Set report = reportfile.OpenReport(App.Path & "/car1.rpt")

report.Database.SetDataSource rs







Form2.CRViewer91.ReportSource = report

Form2.CRViewer91.EnableExportButton = True

Form2.CRViewer91.DisplayGroupTree = False

Form2.CRViewer91.EnableProgressControl = True



Form2.CRViewer91.EnableProgressControl = True







Form2.CRViewer91.ViewReport

Form2.CRViewer91.Zoom 1

Form2.Show

AnswerRe: Crystal Report Pin
Shameel12-Nov-09 23:06
professionalShameel12-Nov-09 23:06 
GeneralRe: Crystal Report Pin
magedhv14-Nov-09 21:42
magedhv14-Nov-09 21:42 
QuestionAdding Entries of Two columns in SQL database using VBasic. Pin
jeshra27911-Nov-09 23:48
jeshra27911-Nov-09 23:48 
AnswerRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Shameel12-Nov-09 0:07
professionalShameel12-Nov-09 0:07 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
jeshra27912-Nov-09 0:58
jeshra27912-Nov-09 0:58 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
jeshra27912-Nov-09 5:59
jeshra27912-Nov-09 5:59 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Shameel12-Nov-09 23:08
professionalShameel12-Nov-09 23:08 
AnswerRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Johan Hakkesteegt12-Nov-09 0:30
Johan Hakkesteegt12-Nov-09 0:30 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
jeshra27912-Nov-09 0:58
jeshra27912-Nov-09 0:58 
GeneralRe: Adding Entries of Two columns in SQL database using VBasic. Pin
Johan Hakkesteegt12-Nov-09 1:04
Johan Hakkesteegt12-Nov-09 1:04 
QuestionSorting Excel range of cells by column in VB Pin
nhsal6911-Nov-09 22:50
nhsal6911-Nov-09 22:50 
AnswerRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt11-Nov-09 23:41
Johan Hakkesteegt11-Nov-09 23:41 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6912-Nov-09 0:20
nhsal6912-Nov-09 0:20 
GeneralRe: Sorting Excel range of cells by column in VB [modified] Pin
Johan Hakkesteegt12-Nov-09 0:26
Johan Hakkesteegt12-Nov-09 0:26 
GeneralRe: Sorting Excel range of cells by column in VB Pin
nhsal6912-Nov-09 1:05
nhsal6912-Nov-09 1:05 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 2:03
Johan Hakkesteegt12-Nov-09 2:03 
GeneralRe: Sorting Excel range of cells by column in VB Pin
Johan Hakkesteegt12-Nov-09 3:16
Johan Hakkesteegt12-Nov-09 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.