473,748 Members | 8,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't trap error in called routine

I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error

Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")

Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpda te in Line " & Erl & "."
Exit Sub
End Sub

Function UpdateDiary(vTe nantCounter As Long, strSource As String) As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As Variant

Set db = CurrentDb

Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With

UpdateDiary = True

CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function

ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function

rsEvents lists a number of fields, which can be on any one of a number of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't exist on
the subform being checked, the UpdateDiary routine fails and returns to the
calling sub error code.
Can anyone tell me why doesn't it go to the error code in UpdateDiary?

--
Bob Darlington
Brisbane
Feb 20 '07 #1
7 2419
Forgot to mention the error generated from the calling routine is 2465 -
"Can't find field ...."

--
Bob Darlington
Brisbane
"Bob Darlington" <bo*@dpcmanAX.c om.auwrote in message
news:45******** **************@ news.optusnet.c om.au...
I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error

Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")

Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpda te in Line " & Erl & "."
Exit Sub
End Sub

Function UpdateDiary(vTe nantCounter As Long, strSource As String) As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As Variant

Set db = CurrentDb

Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With

UpdateDiary = True

CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function

ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function

rsEvents lists a number of fields, which can be on any one of a number of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't exist
on the subform being checked, the UpdateDiary routine fails and returns to
the calling sub error code.
Can anyone tell me why doesn't it go to the error code in UpdateDiary?

--
Bob Darlington
Brisbane

Feb 20 '07 #2
On Feb 20, 1:41 am, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
Forgot to mention the error generated from the calling routine is 2465 -
"Can't find field ...."

--
Bob Darlington
Brisbane"Bob Darlington" <b...@dpcmanAX. com.auwrote in message

news:45******** **************@ news.optusnet.c om.au...
I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error
Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")
Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpda te in Line " & Erl & "."
Exit Sub
End Sub
Function UpdateDiary(vTe nantCounter As Long, strSource As String) As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As Variant
Set db = CurrentDb
Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With
UpdateDiary = True
CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function
ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function
rsEvents lists a number of fields, which can be on any one of a number of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't exist
on the subform being checked, the UpdateDiary routine fails and returns to
the calling sub error code.
Can anyone tell me why doesn't it go to the error code in UpdateDiary?
--
Bob Darlington
Brisbane

In the code window, under Tools, Options - "General" tab, do you have
have 'Break on Unhandled Errors' selected in the Error Trapping
section? If not, you'll need to select this in order for your error
handler to work correctly.

Bruce

Feb 20 '07 #3
On Feb 20, 2:41 am, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
Forgot to mention the error generated from the calling routine is 2465 -
"Can't find field ...."

--
Bob Darlington
Brisbane"Bob Darlington" <b...@dpcmanAX. com.auwrote in message

news:45******** **************@ news.optusnet.c om.au...
I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error
Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")
Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpda te in Line " & Erl & "."
Exit Sub
End Sub
Function UpdateDiary(vTe nantCounter As Long, strSource As String) As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As Variant
Set db = CurrentDb
Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With
UpdateDiary = True
CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function
ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function
rsEvents lists a number of fields, which can be on any one of a number of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't exist
on the subform being checked, the UpdateDiary routine fails and returns to
the calling sub error code.
Can anyone tell me why doesn't it go to the error code in UpdateDiary?
--
Bob Darlington
Brisbane

If you expect the 2465 error to occur because a control may or may not
be there, it would be better to revise your code to account for it.
Include a check to see if the error is 2465, then either Resume Next
or Resume something else. Also, I believe the only time an error event
completes itself is when a Resume, Exit or End statement is
encountered. I'm not sure using the Goto in your handler resets the
error event. You should use Resume NextEvent. If you encounter an
error before the first is dealt with, I think the proceedure stops
entirely.

Feb 20 '07 #4
Thanks for the reply Bruce. I did have that check box checked.

--
Bob Darlington
Brisbane
"Bruce" <de************ ***@gmail.comwr ote in message
news:11******** **************@ h3g2000cwc.goog legroups.com...
On Feb 20, 1:41 am, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
>Forgot to mention the error generated from the calling routine is 2465 -
"Can't find field ...."

--
Bob Darlington
Brisbane"Bob Darlington" <b...@dpcmanAX. com.auwrote in message

news:45******* *************** @news.optusnet. com.au...
I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error
Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")
Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpda te in Line " & Erl & "."
Exit Sub
End Sub
Function UpdateDiary(vTe nantCounter As Long, strSource As String) As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As Variant
Set db = CurrentDb
Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With
UpdateDiary = True
CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function
ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function
rsEvents lists a number of fields, which can be on any one of a number
of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't
exist
on the subform being checked, the UpdateDiary routine fails and returns
to
the calling sub error code.
Can anyone tell me why doesn't it go to the error code in UpdateDiary?
--
Bob Darlington
Brisbane


In the code window, under Tools, Options - "General" tab, do you have
have 'Break on Unhandled Errors' selected in the Error Trapping
section? If not, you'll need to select this in order for your error
handler to work correctly.

Bruce

Feb 21 '07 #5


--
Bob Darlington
Brisbane
"storrboy" <st******@sympa tico.cawrote in message
news:11******** **************@ l53g2000cwa.goo glegroups.com.. .
On Feb 20, 2:41 am, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
>Forgot to mention the error generated from the calling routine is 2465 -
"Can't find field ...."

--
Bob Darlington
Brisbane"Bob Darlington" <b...@dpcmanAX. com.auwrote in message

news:45******* *************** @news.optusnet. com.au...
I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error
Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")
Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpda te in Line " & Erl & "."
Exit Sub
End Sub
Function UpdateDiary(vTe nantCounter As Long, strSource As String) As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As Variant
Set db = CurrentDb
Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With
UpdateDiary = True
CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function
ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function
rsEvents lists a number of fields, which can be on any one of a number
of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't
exist
on the subform being checked, the UpdateDiary routine fails and returns
to
the calling sub error code.
Can anyone tell me why doesn't it go to the error code in UpdateDiary?
--
Bob Darlington
Brisbane


If you expect the 2465 error to occur because a control may or may not
be there, it would be better to revise your code to account for it.
Include a check to see if the error is 2465, then either Resume Next
or Resume something else. Also, I believe the only time an error event
completes itself is when a Resume, Exit or End statement is
encountered. I'm not sure using the Goto in your handler resets the
error event. You should use Resume NextEvent. If you encounter an
error before the first is dealt with, I think the proceedure stops
entirely.
Thanks for the reply.
The problem is how to check for the error.
At present, if the field is not found, it jumps back to the calling routine,
bypassing the error code in the called routine.
Feb 21 '07 #6
On Feb 20, 8:20 pm, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
--
Bob Darlington
Brisbane"storrb oy" <storr...@sympa tico.cawrote in message

news:11******** **************@ l53g2000cwa.goo glegroups.com.. .
On Feb 20, 2:41 am, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
Forgot to mention the error generated from the calling routine is 2465 -
"Can't find field ...."
--
Bob Darlington
Brisbane"Bob Darlington" <b...@dpcmanAX. com.auwrote in message
>news:45******* *************** @news.optusnet. com.au...
I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error
Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")
Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpda te in Line " & Erl & "."
Exit Sub
End Sub
Function UpdateDiary(vTe nantCounter As Long, strSource As String) As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As Variant
Set db = CurrentDb
Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With
UpdateDiary = True
CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function
ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function
rsEvents lists a number of fields, which can be on any one of a number
of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't
exist
on the subform being checked, the UpdateDiary routine fails and returns
to
the calling sub error code.
Can anyone tell me why doesn't it go to the error code in UpdateDiary?
--
Bob Darlington
Brisbane
If you expect the 2465 error to occur because a control may or may not
be there, it would be better to revise your code to account for it.
Include a check to see if the error is 2465, then either Resume Next
or Resume something else. Also, I believe the only time an error event
completes itself is when a Resume, Exit or End statement is
encountered. I'm not sure using the Goto in your handler resets the
error event. You should use Resume NextEvent. If you encounter an
error before the first is dealt with, I think the proceedure stops
entirely.

Thanks for the reply.
The problem is how to check for the error.
At present, if the field is not found, it jumps back to the calling routine,
bypassing the error code in the called routine.

And I think that's because your not fully handling the error. It
should probably look something like this instead...

ErrorUpdateDiar y:
Select Case Err.Number
Case 438, 2465 'Can only read 'OldValue' if control
is on form
Resume Next Event
Case Else
MsgBox Err.Number & " - " & Err.Description
Resume CloseFunction
End Select
End Function

Feb 21 '07 #7

"storrboy" <st******@sympa tico.cawrote in message
news:11******** ************@s4 8g2000cws.googl egroups.com...
On Feb 20, 8:20 pm, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
>--
Bob Darlington
Brisbane"storr boy" <storr...@sympa tico.cawrote in message

news:11******* *************** @l53g2000cwa.go oglegroups.com. ..
On Feb 20, 2:41 am, "Bob Darlington" <b...@dpcmanAX. com.auwrote:
Forgot to mention the error generated from the calling routine is
2465 -
"Can't find field ...."
>--
Bob Darlington
Brisbane"Bob Darlington" <b...@dpcmanAX. com.auwrote in message
>>news:45****** *************** *@news.optusnet .com.au...
I'm using the following routine to call UpdateDiary() - below:
Private Sub Form_BeforeUpda te(Cancel As Integer)
On Error GoTo Form_BeforeUpda te_Error
Call UpdateDiary(Me! TenantCounter, "sfTenantDetail sOther")
Exit Sub
Form_BeforeUpda te_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") "
_
& "in procedure Form_BeforeUpda te in Line " & Erl &
"."
Exit Sub
End Sub
Function UpdateDiary(vTe nantCounter As Long, strSource As String)
As
Boolean
On Error GoTo ErrorUpdateDiar y
'Called from Form Before update
Dim db As Database, rsEvents As Recordset
Dim sf As Control, ctrl As Control
Dim strFld As String, vNewDate As Variant, vOldDate As
Variant
Set db = CurrentDb
Set sf = Forms!fTenantDe tails(strSource )
Set rsEvents = db.OpenRecordse t("SELECT * FROM
tDiaryEventType s
WHERE TypeID < 20")
With rsEvents
Do Until .EOF
strFld = !LinkedField
vNewDate = sf.Form(strFld)
vOldDate = sf.Form(strFld) .OldValue
vNewDate <Nz(vOldDate, 0) Then
etc etc etc
NextEvent:
.MoveNext
Loop
End With
UpdateDiary = True
CloseFunction:
On Error Resume Next
DoCmd.Hourglass False
Exit Function
ErrorUpdateDiar y:
If Err = 438 Then
GoTo NextEvent 'Can only read 'OldValue' if control is on
form
Else
MsgBox Error$ & " " & Err
End If
Resume CloseFunction
End Function
rsEvents lists a number of fields, which can be on any one of a
number
of
subforms.
The Field and Control Names are identical.
It works fine provided the field is found. But if the field doesn't
exist
on the subform being checked, the UpdateDiary routine fails and
returns
to
the calling sub error code.
Can anyone tell me why doesn't it go to the error code in
UpdateDiary?
--
Bob Darlington
Brisbane
If you expect the 2465 error to occur because a control may or may not
be there, it would be better to revise your code to account for it.
Include a check to see if the error is 2465, then either Resume Next
or Resume something else. Also, I believe the only time an error event
completes itself is when a Resume, Exit or End statement is
encountered. I'm not sure using the Goto in your handler resets the
error event. You should use Resume NextEvent. If you encounter an
error before the first is dealt with, I think the proceedure stops
entirely.

Thanks for the reply.
The problem is how to check for the error.
At present, if the field is not found, it jumps back to the calling
routine,
bypassing the error code in the called routine.


And I think that's because your not fully handling the error. It
should probably look something like this instead...

ErrorUpdateDiar y:
Select Case Err.Number
Case 438, 2465 'Can only read 'OldValue' if control
is on form
Resume Next Event
Case Else
MsgBox Err.Number & " - " & Err.Description
Resume CloseFunction
End Select
End Function
Thanks for the reply, and sorry I'm late responding.
The problem was that the error wouldn't trigger 'ErrorUpdateDia ry'. It just
went back to the calling routine.
But your earlier response gave me a clue and I've since used:
On Error GoTo ErrorFieldNotFo und
vFld = sf(strFld)
vNewDate = sf(strFld)
vOldDate = sf(strFld).OldV alue
On Error GoTo ErrorUpdateDiar y

ErrorFieldNotFo und:
Err.Clear
Resume NextEvent

and it works OK.
But I still can't figure why the jump to the calling routine occurred. Every
prior error should have been dealt with by the called routine. And how did
the calling routine get details of the error from the called routine?

Anyhow, thanks for your help.

--
Bob Darlington
Brisbane
Feb 27 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3358
by: Lord Merlin | last post by:
When using "if then" statements in global, I get the following error: a.. Error Type: (0x8002802B) Element not found. //global.asa, line 12 Can I use if then statements in global?
10
2439
by: Mike D | last post by:
I have a table in SQL 2000 with a composite Primary Key on coulumns Instrument_ID (int) and WeekOf (smalldatetime.) I am running asp on win 2003. I insert values using a stored procedure from this ASP: InsertSQL = "Execute osp_insert_Instrument_Schedule " InsertSQL = InsertSQL & "@UserName = '" & strUserName & "', " InsertSQL = InsertSQL & "@DateInput = '" & Date() & "', " InsertSQL = InsertSQL & "@Instrument_ID = " & strInstrument_ID &...
2
11110
by: Susan Bricker | last post by:
Hi. I have a routine (BldEmail) that is causing an error on my user's PC but not on mine. HELP!!! I have to fix this tonight. She reports an error with err.number=429 and the error message "ActiveX Component can't create object" out of my BldEmail routine. The routine is called to dynamically build an email note and put it in the Drafts folder. It uses late binding and has the following code: Dim objOutlook As Object
2
2726
by: john | last post by:
In a button I have this code: Testfield.SetFocus DoCmd.RunCommand acCmdPaste When the clipboard is empty this gives an error saying that this action is not available at the moment. I'd like to trap for this error, prevent the message from showing, and stop the whole routine that comes after this code. What would be the best way to do this? thanks,
4
12440
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
4
1440
by: Darin | last post by:
I have a public class that I use to read columns out of a SQL database. In the try, catch, loop I want to display the error, and in the error I want to display the calling routine (and helpfully the line # from the calling routine). Is that possible? The stacktrace gives me the system information (at system.data.sqlclient.sqlconnection.onerror, etc). I am looking for my routine that called it.
5
4122
by: Yvonne | last post by:
Hi, I have this Access 2003 DB that handles Clients and their respective items of correspondence in a one to many relationship. Clients details are entered in frmPerson. When it comes to recording an item of correspondence this is done via another form/subform ( main form is called frmLetterDetail ). This main form summarises the Client's details and the subform gives details of each individual item of correspondence displayed as...
5
2679
by: Mahendra Kumar Kutare | last post by:
I am trying to implement a webserver with boss-worker model thread pool implementation - I have a header declaration threadpool.h as - typedef struct threadpool_work { void (*routine) (); void *arg; struct threadpool_work *next; } threadpool_work_t;
33
1761
by: insirawali | last post by:
I have written this in C#. I just need to convert it into C. da problem comes when handling the String. In C the String doesn't behave the same way as in C#. it would be great help if smeone cn help me out to make the string work on the same way as in C# (for this code.).
0
8823
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.