It runs fine when I make an EXE and run it on the machine I created the app in.
Made the changes you suggested and get the same error. Here is the code for DBSAR,
I can't find anywhere that is missing anything.
Private Sub cmdclickeditdiagrams_Click
datPrimaryRS.Recordset.Upd
Load Form6
Form6.Show
End Sub
Private Sub printform_Click()
Dim i As Integer
Printer.Copies = 1
For i = 0 To SSTab1.Tabs - 1
SSTab1.Tab = i
Me.printform ' or form1.printform
Next i
Unload Me
End Sub
Private Sub discharge_Click()
datPrimaryRS.Recordset.Upd
Form1.Show
End Sub
Private Sub Form_initialize()
Text13.Text = Format(Now(), "mm/dd/yy")
End Sub
Private Sub updatecurrentrecord_Click(
On Error GoTo UpdateErr
datPrimaryRS.Recordset.Upd
Exit Sub
UpdateErr:
MsgBox Err.Description
End Sub
Private Sub Form_Load()
datPrimaryRS.Recordset.Add
End Sub
Private Sub Form_Unload(Cancel As Integer)
Screen.MousePointer = vbDefault
End Sub
Private Sub datPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, fCancelDisplay As Boolean)
'This is where you would put error handling code
'If you want to ignore errors, comment out the next line
'If you want to trap them, add code here to handle them
MsgBox "Data error event hit err:" & Description
End Sub
Private Sub datPrimaryRS_MoveComplete(
'This will display the current record position for this recordset
datPrimaryRS.Caption = "Record: " & CStr(datPrimaryRS.Recordse
End Sub
Private Sub cmdDelete_Click()
On Error GoTo DeleteErr
With datPrimaryRS.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
DeleteErr:
MsgBox Err.Description
End Sub
Private Sub cmdRefresh_Click()
'This is only needed for multi user apps
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
Private Sub cmdUpdate_Click()
On Error GoTo UpdateErr
datPrimaryRS.Recordset.Upd
Exit Sub
UpdateErr:
MsgBox Err.Description
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub insertimages_Click(index As Integer)
datPrimaryRS.Recordset.Upd
Load Form3
Form3.Show
End Sub
I tried removing everything that wasn't important.... Hope this helps...
JamieJ
Main Topics
Browse All Topics





by: bruintjePosted on 2003-08-29 at 12:40:35ID: 9250732
then next form is not loaded or you have some controls that are initilizing on that form that need something else
tryassuming DBSat is your form
Private Sub Command1_Click()
Load DBSAR
DBSAR.Show
End Sub
else give some specifics