Jumat, 02 September 2022

Re: [MSAccessProfessionals] Error 3192 in Insert command

Then you may need to refresh/relink the table. If you double click the table in the Nav Pane, does the table open up, or do you get an error?


On Fri, Sep 2, 2022 at 3: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.Database
    Dim sql As String
 
    Set dbs = CurrentDb
 
    sql = "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
 

_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116269) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Tidak ada komentar:

Posting Komentar