Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Why is my linked jet table not updatable?

Why is my linked jet table not updatable?

Why is my linked jet table not updatable?

I am converting my Access mdb file to adp and sql server 7.0. I use a lot of VBA. It has been a challenge but most thinks are working now. However I have a linked jet table from another access database that I am having problems with. When I link the table Access makes it a view and it is not updatable. I am using VBA to update the table but get an error "Invalid Object Name [Inventory]" (Inventory is the name of the query). If I import the table everything works well, but since the table is part of another application I can't use an imported copy. I need to share the table. Any help you can provide will be appreciated.

Error occurs on the inventory.update in the next to the last line below:

Dim inventory As New ADODB.Recordset
ShippedOldValue = Me.Ship.OldValue
If Not ShippedOldValue = Me.Shipped Then
    inventory.Open "Select * from [Inventory] where [ItemNum] = '" + Me.ProductID + "'", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
If Not inventory.EOF Then
      inventory("In_Stock") = inventory("In_Stock") - (Me.Shipped - ShippedOldValue)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close