Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-2008, 10:03 PM
=?Utf-8?B?QmlsbGlhbQ==?=
 
Posts: n/a
Allen Browne Help!!!

Allen , if you're out there, can I use your audit log in an Access 2007 ACCdb
format? If so, How do you turn "confirm Record changes" on? I am having
trouble with the following after I try to change a field, and I am not sure
why...

Compile error: method or data member not found

When i click on Okay I get the following--see 'my comments
Private Sub Form_BeforeUpdate(Cancel As Integer) 'this line is highlighted
in yellow
bWasNewRecord = Me.NewRecord
Call AuditEditBegin("TblFSESO", "AuditTmpTblFSESO", "InstructorID",
Nz(Me.InstructorID, 0), bWasNewRecord) ' .InstructorID is highlighted in grey
End Sub

InstructorID is a primary key Autonumber long integer on which the form to
be audited is based on the TblFSESO...

Please help Anyone!
Reply With Quote
  #2 (permalink)  
Old 08-15-2008, 02:20 AM
Allen Browne
 
Posts: n/a
Re: Allen Browne Help!!!

In the article at:
http://allenbrowne.com/AppAudit.html
scroll down to the section:
Enter the Form Events
Step 1 calls for you to declare bWasNewRecord.

As stated near the top of the article, the code works with Access 2007
except for tables that use a Multi-Valued Field.

To set the confirm options in Access 2007, click the Office Button (top
left), then Access options (bottom of dialog.)

The most common problem reported with this utility is where the tables are
not set up correctly, e.g. you skipped a field, the fields are out of order,
you inserted an extra PK at the top of the audit table, or you have a unique
index in the audit table that prevents the entries.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Billiam" <Billiam@discussions.microsoft.com> wrote in message
news:F45451BB-13E9-4C33-802D-2DB8CDD6C951@microsoft.com...
> Allen , if you're out there, can I use your audit log in an Access 2007
> ACCdb
> format? If so, How do you turn "confirm Record changes" on? I am having
> trouble with the following after I try to change a field, and I am not
> sure
> why...
>
> Compile error: method or data member not found
>
> When i click on Okay I get the following--see 'my comments
> Private Sub Form_BeforeUpdate(Cancel As Integer) 'this line is highlighted
> in yellow
> bWasNewRecord = Me.NewRecord
> Call AuditEditBegin("TblFSESO", "AuditTmpTblFSESO", "InstructorID",
> Nz(Me.InstructorID, 0), bWasNewRecord) ' .InstructorID is highlighted in
> grey
> End Sub
>
> InstructorID is a primary key Autonumber long integer on which the form to
> be audited is based on the TblFSESO...
>
> Please help Anyone!


Reply With Quote
  #3 (permalink)  
Old 08-17-2008, 07:29 AM
=?Utf-8?B?QmlsbGlhbQ==?=
 
Posts: n/a
Re: Allen Browne Help!!!

Thanks for your help, Allen!

I am now getting the following error:

Compile error: Sub or function not defined

Err_AuditEditBegin:
Call LogError(Err.Number, Err.Description, conMod & ".AuditEditBegin()",
, False)
Resume Exit_AuditEditBegin
End Function

Call LogError is highlighted.

What have I missed???

Billiam

"Allen Browne" wrote:

> In the article at:
> http://allenbrowne.com/AppAudit.html
> scroll down to the section:
> Enter the Form Events
> Step 1 calls for you to declare bWasNewRecord.
>
> As stated near the top of the article, the code works with Access 2007
> except for tables that use a Multi-Valued Field.
>
> To set the confirm options in Access 2007, click the Office Button (top
> left), then Access options (bottom of dialog.)
>
> The most common problem reported with this utility is where the tables are
> not set up correctly, e.g. you skipped a field, the fields are out of order,
> you inserted an extra PK at the top of the audit table, or you have a unique
> index in the audit table that prevents the entries.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Billiam" <Billiam@discussions.microsoft.com> wrote in message
> news:F45451BB-13E9-4C33-802D-2DB8CDD6C951@microsoft.com...
> > Allen , if you're out there, can I use your audit log in an Access 2007
> > ACCdb
> > format? If so, How do you turn "confirm Record changes" on? I am having
> > trouble with the following after I try to change a field, and I am not
> > sure
> > why...
> >
> > Compile error: method or data member not found
> >
> > When i click on Okay I get the following--see 'my comments
> > Private Sub Form_BeforeUpdate(Cancel As Integer) 'this line is highlighted
> > in yellow
> > bWasNewRecord = Me.NewRecord
> > Call AuditEditBegin("TblFSESO", "AuditTmpTblFSESO", "InstructorID",
> > Nz(Me.InstructorID, 0), bWasNewRecord) ' .InstructorID is highlighted in
> > grey
> > End Sub
> >
> > InstructorID is a primary key Autonumber long integer on which the form to
> > be audited is based on the TblFSESO...
> >
> > Please help Anyone!

>
>

Reply With Quote
  #4 (permalink)  
Old 08-17-2008, 08:05 AM
=?Utf-8?B?QmlsbGlhbQ==?=
 
Posts: n/a
Re: Allen Browne Help!!!

Okay, Allen, I am now receiving the following error:

I received the following error message: Run-time error '3825': SELECT cannot
be used in an INSERT INTO query when the source or destination table
contains a multi-valued field.

Yes I am using Access 2007, but I am not using a multi-valued field. How can
I confirm that I am not using a multi-valued field?

Billiam

"Allen Browne" wrote:

> In the article at:
> http://allenbrowne.com/AppAudit.html
> scroll down to the section:
> Enter the Form Events
> Step 1 calls for you to declare bWasNewRecord.
>
> As stated near the top of the article, the code works with Access 2007
> except for tables that use a Multi-Valued Field.
>
> To set the confirm options in Access 2007, click the Office Button (top
> left), then Access options (bottom of dialog.)
>
> The most common problem reported with this utility is where the tables are
> not set up correctly, e.g. you skipped a field, the fields are out of order,
> you inserted an extra PK at the top of the audit table, or you have a unique
> index in the audit table that prevents the entries.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Billiam" <Billiam@discussions.microsoft.com> wrote in message
> news:F45451BB-13E9-4C33-802D-2DB8CDD6C951@microsoft.com...
> > Allen , if you're out there, can I use your audit log in an Access 2007
> > ACCdb
> > format? If so, How do you turn "confirm Record changes" on? I am having
> > trouble with the following after I try to change a field, and I am not
> > sure
> > why...
> >
> > Compile error: method or data member not found
> >
> > When i click on Okay I get the following--see 'my comments
> > Private Sub Form_BeforeUpdate(Cancel As Integer) 'this line is highlighted
> > in yellow
> > bWasNewRecord = Me.NewRecord
> > Call AuditEditBegin("TblFSESO", "AuditTmpTblFSESO", "InstructorID",
> > Nz(Me.InstructorID, 0), bWasNewRecord) ' .InstructorID is highlighted in
> > grey
> > End Sub
> >
> > InstructorID is a primary key Autonumber long integer on which the form to
> > be audited is based on the TblFSESO...
> >
> > Please help Anyone!

>
>

Reply With Quote
  #5 (permalink)  
Old 08-17-2008, 12:21 PM
Allen Browne
 
Posts: n/a
Re: Allen Browne Help!!!

"Billiam" <Billiam@discussions.microsoft.com> wrote in message
news:260F3449-DEF8-40A2-83FB-67D5FF41C9D9@microsoft.com...
> Okay, Allen, I am now receiving the following error:


Will have to let you debug this for yourself. It does work, but you do have
to get your tables right, and your SQL statement right.

In table design view, the properties for the field (lower pane of the table
design window) will tell you if you have set up a field with a combo to
accept multiple values.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

Reply With Quote
  #6 (permalink)  
Old 08-17-2008, 05:08 PM
=?Utf-8?B?QmlsbGlhbQ==?=
 
Posts: n/a
Re: Allen Browne Help!!!

I really appreciate your help, Allen. I have gone through every field as
suggested and I do not have a multi valued field. I Have checked and
rechecked my tables. Afraid this is beyond meat this time.
Thanks anyways for trying to help me, I really appreciate it!
Have a great day,
Billiam

"Allen Browne" wrote:

> "Billiam" <Billiam@discussions.microsoft.com> wrote in message
> news:260F3449-DEF8-40A2-83FB-67D5FF41C9D9@microsoft.com...
> > Okay, Allen, I am now receiving the following error:

>
> Will have to let you debug this for yourself. It does work, but you do have
> to get your tables right, and your SQL statement right.
>
> In table design view, the properties for the field (lower pane of the table
> design window) will tell you if you have set up a field with a combo to
> accept multiple values.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
>

Reply With Quote
  #7 (permalink)  
Old 08-18-2008, 09:20 PM
=?Utf-8?B?QmlsbGlhbQ==?=
 
Posts: n/a
Re: Allen Browne Help!!!

Hi Allen,

Just in case anyone is following this thread, here is what I did wrong...

First I did not read carefully enough on setting up the tables...I
completely missed including the Primary key of the table the form was based
on, and changing it to a number, non indexed type (another reason you should
not be doing this late at night :-< .

Also, even though I went through my table in design view, I did not see
anything listed as a multivalued field. What I wasn't smart enough to realize
until I looked through my table types, is that obviously an attachment
datatype will allow multiple values in a field. When I removed this field
from tables, I no longer recieved the error, and my edits etc were logged.
HOOOOOOORRRRRAAAAY!!!!!!!!!!!!!!!!!!!!!
Just thought I'd let you know you were right, and I WAS WRONG! <g>

Have a great week, and many, many thanks again for your help, Allen! Also,
many thanks for the whole procedure as well, It will be years before I can do
stuff like that on my own---okay decades...centuries???
Billiam


"Allen Browne" wrote:

> "Billiam" <Billiam@discussions.microsoft.com> wrote in message
> news:260F3449-DEF8-40A2-83FB-67D5FF41C9D9@microsoft.com...
> > Okay, Allen, I am now receiving the following error:

>
> Will have to let you debug this for yourself. It does work, but you do have
> to get your tables right, and your SQL statement right.
>
> In table design view, the properties for the field (lower pane of the table
> design window) will tell you if you have set up a field with a combo to
> accept multiple values.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
>

Reply With Quote
  #8 (permalink)  
Old 08-19-2008, 03:17 AM
Allen Browne
 
Posts: n/a
Re: Allen Browne Help!!!

"Billiam" <Billiam@discussions.microsoft.com> wrote in message
news:42DEA1ED-4CD3-4DEE-A9B6-143BDF500146@microsoft.com...
>
> ... an attachment datatype will allow multiple values in a field.
> When I removed this field from tables, I no longer recieved the error,
> and my edits etc were logged.
> HOOOOOOORRRRRAAAAY!!!!!!!!!!!!!!!!!!!!!


That's great news. All the best.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:34 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Modded Xbox | Loans | Secured Loans | Credit Cards | Free Advertising



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114