Click here to Skip to main content
16,005,121 members
Home / Discussions / Visual Basic
   

Visual Basic

 
General2 questions Pin
r i s h a b h s25-Feb-03 23:49
r i s h a b h s25-Feb-03 23:49 
GeneralRe: 2 questions Pin
paul_b26-Feb-03 4:49
paul_b26-Feb-03 4:49 
GeneralAccess a folders properties programmatically Pin
RHYS25-Feb-03 21:40
RHYS25-Feb-03 21:40 
GeneralGood Book on CrystalReports with VB Pin
Vasudevan Deepak Kumar25-Feb-03 18:17
Vasudevan Deepak Kumar25-Feb-03 18:17 
Generalsecure mdb file Pin
qiang25-Feb-03 14:12
qiang25-Feb-03 14:12 
Generalnewbie needs help Pin
sundragon12325-Feb-03 9:11
sundragon12325-Feb-03 9:11 
GeneralRe: newbie needs help Pin
paul_b26-Feb-03 4:57
paul_b26-Feb-03 4:57 
Generalunloading a form at load time Pin
mcm24-Feb-03 23:46
mcm24-Feb-03 23:46 
Dim checkSQL As String
checkSQL = "SELECT OrderGenerate.OrderNumber, Client.Company, OrderGenerate.Completed " & _
" FROM Client INNER JOIN OrderGenerate ON Client.ClientCode = OrderGenerate.ClientCode " & _
" WHERE OrderGenerate.OrderDate= #" & dDate & "#"
Set RS = Conn.Execute(checkSQL)

If RS.BOF And RS.EOF Then
MsgBox "No orders yet today", vbExclamation, "No records returned"
Unload Me
Exit Sub
End If
The above is code that is located at the form load of the form. if no records are returned from the SQL statement, i wish the message box to be displayed and the form to be unloaded, however on run time, it crashes "object was unloaded" - is there anything i can do to fix this? any help would be greatly appreciated!
GeneralRe: unloading a form at load time Pin
Hesham Amin25-Feb-03 2:53
Hesham Amin25-Feb-03 2:53 
GeneralVB Help files Pin
mcm24-Feb-03 23:20
mcm24-Feb-03 23:20 
GeneralRe: VB Help files Pin
Hesham Amin25-Feb-03 2:58
Hesham Amin25-Feb-03 2:58 
GeneralPrinting with Data Environment Pin
bruceb24-Feb-03 17:07
bruceb24-Feb-03 17:07 
GeneralRe: Printing with Data Environment Pin
Hesham Amin24-Feb-03 21:35
Hesham Amin24-Feb-03 21:35 
GeneralRe: Printing with Data Environment Pin
bruceb25-Feb-03 22:57
bruceb25-Feb-03 22:57 
General[Q] ADO Recordset Events in VB6 Pin
Derek Price24-Feb-03 5:42
Derek Price24-Feb-03 5:42 
GeneralRe: [Q] ADO Recordset Events in VB6 Pin
Hesham Amin25-Feb-03 2:47
Hesham Amin25-Feb-03 2:47 
Generaldeleting a row in a datagrid Pin
mcm24-Feb-03 3:51
mcm24-Feb-03 3:51 
GeneralRe: deleting a row in a datagrid Pin
Brian Lehmann3-Mar-03 10:44
Brian Lehmann3-Mar-03 10:44 
Generalgetting a single row in a dataview how Pin
DODO23-Feb-03 23:13
DODO23-Feb-03 23:13 
Generaloperation not allowed when object is closed Pin
mcm23-Feb-03 22:51
mcm23-Feb-03 22:51 
GeneralRe: operation not allowed when object is closed Pin
Hesham Amin24-Feb-03 3:36
Hesham Amin24-Feb-03 3:36 
GeneralNewbie question: Default installer path name Pin
Jim_the_M23-Feb-03 13:35
sussJim_the_M23-Feb-03 13:35 
Generalproblem in web client(redundant data added in uploaded file) Pin
yccheok23-Feb-03 11:12
yccheok23-Feb-03 11:12 
GeneralImplementing an interface (quandry)... Pin
Ray Cassick22-Feb-03 19:38
Ray Cassick22-Feb-03 19:38 
GeneralRe: Implementing an interface (quandry)... Pin
Jim Stewart22-Feb-03 20:11
Jim Stewart22-Feb-03 20:11 

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.