Also open the debug window (press Ctrl+G) and enter this into the window:
?Currentdb.TableDefs("dbo_tblScheMod").Fields.Count
If there is a table with the name dbo_tblScheMod, you should see a count of the number of fields.
Duane
From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> on behalf of Duane Hookom <duanehookom@hotmail.com>
Sent: Friday, September 2, 2022 2:35 PM
To: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io>
Subject: Re: [MSAccessProfessionals] Error 3192 in Insert command
Sent: Friday, September 2, 2022 2:35 PM
To: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io>
Subject: Re: [MSAccessProfessionals] Error 3192 in Insert command
I would confirm there aren't two underscores. Also try repair and compact.
-Duane
On Sep 2, 2022, at 2:26 PM, domcoz <domcoz@gmail.com> wrote:
In your navigation pane, is there a table named dbo_tblSchMod or did you remove the "dbo_ " prefix when you linked it? Yes ..I left the name with the precise dbo_
If I copy the command into an empty query, it gives me the same error.
Il Ven 2 Set 2022, 18:21 Duane Hookom <duanehookom@hotmail.com> ha scritto:
What happens when you paste the SQL into a new, blank query? Consider adding ", dbFailOnError" to the Execute.
I assume the fields are all text.
If the table is on SQL server, I would probably perform this append with a pass-through query.
Duane
Sent from my mobile
On Sep 2, 2022, at 10:40 AM, domcoz <domcoz@gmail.com> wrote:
I have a strange problem: I do an insert into command using as usual example:'----------------------------------------------------------------------Dim dbs As DAO.DatabaseDim sql As StringSet dbs = CurrentDbsql = "INSERT INTO dbo_tblScheMod (Stato, Collezione, Modello, Articolo) VALUES ('x','x','x','x');"dbs.Execute sql'---------------------------------------------------------------
and I get error: Could not find output table dbo_tblScheMod.(Error 3192)The table dbo_tblScheMod exists and visible in the Access environment in the Tables section.Do you have any ideas?a million thanks
Tidak ada komentar:
Posting Komentar