error handling

error handling 80040e4e

Page 1 of 1

2 Replies - 1153 Views - Last Post: 03 January 2009 - 08:24 AM Rate Topic: -----

#1 sudheesh1  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-January 09

error handling

Post icon  Posted 03 January 2009 - 02:05 AM

Private Sub cmdprint_Click()
Adodc1.Recordset.AddNew
  rs!vhleno = autovhleno.Text
rs!pasngr = autopass.Text
rs!corpregno = autocorpno.Text
rs!fare = autofare.Text


  If MsgBox("Do you want to print the slip", vbYesNo) = vbYes Then
  DataReport1.Show
With DataReport1
			.Height = 5000
			.Width = 12000
			.TopMargin = 100
			.BottomMargin = 100
			.LeftMargin = 100
			.RightMargin = 200
			 End With
		  
  
   
   
'DataReport1.PrintReport (True)
  autoname.SetFocus
l1.Caption = Date
Else
autoname.SetFocus
End If

End Sub


Is This A Good Question/Topic? 0
  • +

Replies To: error handling

#2 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: error handling

Posted 03 January 2009 - 05:13 AM

What's your problem?
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1639
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: error handling

Posted 03 January 2009 - 08:24 AM

Are you receiving any errors? Does this code not work that way you intended it? When asking for help there are a couple items that are vital in order for someone to properly help you:

  • Post the code you're having problems with (DONE)
  • Post the exact error you're receiving, if you are receiving one
  • If no error explain what the code is doing versus what you want it to do
  • Post your question in the body of your post, not the description field

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1