Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-access > #1171
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | BobAlston <bobalston9@yahoo.com> |
| Newsgroups | comp.databases.ms-access |
| Subject | Re: Using AllenBrowne's AppAudit routine - getting errors with nulls |
| Date | Mon, 02 May 2011 12:11:58 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 49 |
| Message-ID | <ipmokm$5js$1@dont-email.me> (permalink) |
| References | <ipkr15$rth$1@dont-email.me> <ipml3n$p84$1@dont-email.me> <ipmngs$74n$1@dont-email.me> |
| Reply-To | bobalston9@yahoo.com |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 2 May 2011 17:11:50 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="XXxibxL5//o6plrDR5oatw"; logging-data="5756"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bVuEctFq1ecV3u2yt1BkGS1KgCHrN9FE=" |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 |
| In-Reply-To | <ipmngs$74n$1@dont-email.me> |
| Cancel-Lock | sha1:SXK1GR7VeLoMq9FdBpwQ+hhthwQ= |
| Xref | x330-a1.tempe.blueboxinc.net comp.databases.ms-access:1171 |
Show key headers only | View raw
On 5/2/2011 11:52 AM, Bob Barrows wrote: > BobAlston wrote: >>> and sSQL is >>> >>> INSERT INTO aud_client_Data_Additional SELECT TOP 1 >>> audtmp_client_Data_Additional.* from audtemp.client_data_additional >>> where (audtemp_client_Data_Additional.audtype = 'EditFrom') >>> ORDER BY audtemp_Client_Data_Additional.audDate DESC; >>> > My first step would be to copy the above sql into the SQL View of a query > and attempt to run it. If it runs, you've eliminated the query being the > problem. >>> It is writing the before image of the record, previously saved in the >>> audtemp.... table into the aud.... table. >>> >>> Clearly my table DOES have various null values in it. > > The corresponing fields in the audit table are set to Required? If so, why > would you do that when the fields in the source table are not Required? > >>> >>> It seems to me that my best approach to resolve > > ... assuming the append query is the actual problem ... > >>> would be to use DAO >>> or ADO and update the data fields using a loop of all controls and >>> check for null values before attempting to set a value. > > > Nah - replace the * with actual field names in the query and use Nz on the > fields that are set to be Required in the audit table. > Better yet - set Required to No on the relevant fields in the audit table - > again, this is assuming the append query is the actual culprit. > > Excellent debugging advise. thank you. Copied the insert query to a separate query and ran it interactively. NO problem. then saved it and ran it - so the insert would happen - got the error. I looked at the fields - none are set to required. But clearly some of the fields (optional content) are null. Now???? Bob
Back to comp.databases.ms-access | Previous | Next — Previous in thread | Next in thread | Find similar
Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-01 18:40 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls "Douglas J Steele" <NOSPAM_djsteele@NOSPAM_gmail.com> - 2011-05-01 20:01 -0400
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-02 11:11 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls "Bob Barrows" <reb01501@NOyahooSPAM.com> - 2011-05-02 12:52 -0400
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-02 12:11 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-02 12:17 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-02 12:45 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls "Bob Barrows" <reb01501@NOyahooSPAM.com> - 2011-05-02 14:53 -0400
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-05 08:09 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls "Bob Barrows" <reb01501@NOyahooSPAM.com> - 2011-05-05 10:00 -0400
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-05 09:12 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls "Bob Barrows" <reb01501@NOyahooSPAM.com> - 2011-05-05 10:51 -0400
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-05 14:01 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls "Bob Barrows" <reb01501@NOyahooSPAM.com> - 2011-05-05 15:58 -0400
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-05 15:11 -0500
Re: Using AllenBrowne's AppAudit routine - getting errors with nulls BobAlston <bobalston9@yahoo.com> - 2011-05-05 22:16 -0500
csiph-web