Hi All,
Anyone know why is is failing with the error "Object reference not set to an instance of an object"?
I know it's failing at the line indicated...
VB Code:
sSql = "Select CUSTOMERCODE, CUSTOMERNAME, CUSTOMERADD1, CUSTOMERADD2, CUSTOMERADD3, CUSTOMERADD4, CUSTOMERPOSTCODE, CUSTOMERPRICECODE from PU_CUSTOMERDETAILS" rsCustomerData.Open(sSql, m_dbconn, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockReadOnly, -1) 'Loop through all customer records If rsCustomerData.EOF = False Then rsCustomerData.MoveFirst() 'Set up the progressbar... lProgressBarCount = 0 MainForm.ProgressBar1.Minimum = 1 'Error on this line (with the rsCustomerData.RecordCount bit) MainForm.ProgressBar1.Maximum = rsCustomerData.RecordCount '...blah blah blah
By the way, this code runs fine in the Dev environment but not when compiled and installed on the client machine.![]()




Reply With Quote