Request: Need DB to store bugs (1 Viewer)

Guus2005

AWF VIP
Local time
Today, 19:16
Joined
Jun 26, 2007
Messages
2,645
Hi,

I need a sample database to store issues/bugs/wishes on programs.
I thought this was a sample database in the latest Access version. But i'm on Access 2013 at the moment. Can you point me to a sample database?

Thanks!

Regards,
Guus
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 10:16
Joined
Aug 30, 2003
Messages
36,124
I have 2010 on this computer and searching on "bug" in the templates area finds a bug tracking template at office.com
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:16
Joined
Feb 19, 2002
Messages
43,213
Since the codes change over time, this is a procedure that looks up the current codes and makes a table to hold them.
Code:
Function AccessAndJetErrorsTable() As Boolean
Dim dbs As DAO.Database
Dim tdf As DAO.TableDef
Dim fld As DAO.Field
Dim rst As DAO.Recordset
Dim lngCode As Long
Dim strAccessErr As String

Const conAppObjectError = "Application-defined or object-defined error"

On Error GoTo Error_AccessandJetErrorsTable
' Create Errors table with ErrorNumber and ErrorDescription fields.
Set dbs = CurrentDb
Set tdf = dbs.CreateTableDef("AccessAndJetErrors")
Set fld = tdf.CreateField("ErrorCode", dbLong)

tdf.Fields.Append fld
Set fld = tdf.CreateField("ErrorString", dbMemo)
tdf.Fields.Append fld

dbs.TableDefs.Append tdf
' Open recordset on Errors table.
Set rst = dbs.OpenRecordset("AccessAndJetErrors")
' Loop through error codes.
For lngCode = 0 To 50000
    On Error Resume Next
    ' Raise each error.
    strAccessErr = AccessError(lngCode)
    DoCmd.Hourglass True
    ' Skip error numbers without associated strings.
    If strAccessErr <> "" Then

    ' Skip codes that generate application or object-defined errors.
        If strAccessErr <> conAppObjectError Then
        ' Add each error code and string to Errors table.
            rst.AddNew
            rst!ErrorCode = lngCode
        ' Append string to memo field.
            rst!ErrorString.AppendChunk strAccessErr
            rst.Update
        End If
    End If
Next lngCode
' Close recordset.
rst.Close
DoCmd.Hourglass False
RefreshDatabaseWindow
MsgBox "Access and Jet errors table created."

AccessAndJetErrorsTable = True

Exit_accessAndJetErrorsTable:
Exit Function

Error_AccessandJetErrorsTable:
MsgBox Err & ": " & Err.Description
AccessAndJetErrorsTable = False
Resume Exit_accessAndJetErrorsTable
End Function
 

isladogs

MVP / VIP
Local time
Today, 18:16
Joined
Jan 14, 2017
Messages
18,209
I posted something very similar in this thread some time ago:
https://www.access-programmers.co.uk/forums/showthread.php?t=299991

Thought I'd compare both methods using Access 2010
Both are as you'd expect almost identical

Pat's code omits 6 common errors
Code:
ErrNumber	ErrDescription
3	Return without GoSub
20	Resume without error
35	Sub or Function not defined
91	Object variable or With block variable not set
92	For loop not initialized
94	Invalid use of Null

My code deliberately excludes these values which are in Pat's version:
Code:
ErrorCode	ErrorString
3004	**********
3072	|
3193	(unknown)
3194	(unknown)
3209	**********
3316	|
3369	**********
3392	**********
3395	**********
3416	|
3939	|1
4000	|
8057	|
31665	|
31671	|
32619	0,0
 

Attachments

  • AccessErrorCodesCompared.zip
    349.7 KB · Views: 75

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:16
Joined
Feb 19, 2002
Messages
43,213
Colin,
Sorry, I didn't look at the code in the database you posted mostly because you never said anything about it updating itself. I thought it was just showing a static list and so I thought I was just adding code to update the list.

I'm curious though, do you have any idea why the Access errors collection doesn't include the errors you listed as missing?
 

isladogs

MVP / VIP
Local time
Today, 18:16
Joined
Jan 14, 2017
Messages
18,209
The first link I posted was a static errors list. I posted the second link to deal with the fact that it changes between versions.

It seems those 6 'missing errors' are generic to VBA whereas the others are Access specific. They were also missing in the initial version of my list which was written by Hans Vogelaar. I modified his code to deal with them.
See this discussion https://social.msdn.microsoft.com/Forums/office/en-US/9683d44a-5ac3-45de-a654-5d4fd961203a/get-complete-list-of-access-error-codes-and-descriptions?forum=accessdev

As for the 'unwanted' codes like '**************' or '|', I can only assume they were assigned as markers related to a feature that wasn't implemented or later removed
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:16
Joined
Feb 19, 2002
Messages
43,213
It's funny that those 6 are not in the Access collection since they are being used by Access and there is no VBA collection that I can find.
 

Users who are viewing this thread

Top Bottom