Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6022101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:48:37+00:00 2026-05-23T03:48:37+00:00

I am having a VB.Net application. I connect it with a MS Access database.

  • 0

I am having a VB.Net application. I connect it with a MS Access database. Now I have to execute a query. My query is : Update table1 set field1=replace(field1,'|','"')

This query seems to work fine from the query analyzer of the Access database but when I do the same form the VB.Net code it throws me an error stating “Undefined function ‘Replace’ in expression”

I am using OLEDB connection and command. I am using the “executenonquery” feature.

Can any one help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:48:38+00:00Added an answer on May 23, 2026 at 3:48 am

    Unfortunately when you connect to an Access database from you VB.Net application you aren’t using the Access query engine at all. You’re using Jet. Some of the functions available to you in Access (such as Replace) aren’t available in Jet.

    The classic solution is to use a combination of Iif, Instr etc (those are available). Yep, it’s not as nice as having Replace to play with but you’ll have to learn to do without.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET application which uses an accdb file (MS Access 2007 format)
I need to create an ASP.NET application to access a URL, when this application
I am having a ASP.net web application which is hosted in an internet server.
I am having a performance sensitive .net application. It is capable of doing parallel
I'm having trouble with my ASP.NET application. Basically I've got it hooked up to
I'm having trouble selecting the root of the solution in my ASP.NET Application. I
I've a little problem, with a ASPX .NET application that I'm updating. After having
I have a .Net application. It has a Strings.resx file, along with Strings.es.resx, and
I have a database that many different client applications (a smattering of web services,
Update: A sample project reproducing this bug can be found here at Microsoft Connect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.