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

  • Home
  • SEARCH
  • 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 3842550
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:48:35+00:00 2026-05-19T15:48:35+00:00

BACKGROUND I am making a simple program to log data and do a few

  • 0

BACKGROUND

I am making a simple program to log data and do a few calculations with a .MDB database. accessed via Jet 4.

AIM

I wish to be able to get the value out of / into any field from a sql query on a primary key(one result)

CURRENT

I have currently connected to the database and I am able to view edit the data via “data controls”

as shown below:

enter image description here

QUESTION

How do I access the data in the database such that I may put the values into a suitable variable and then write them back?

  • 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-19T15:48:36+00:00Added an answer on May 19, 2026 at 3:48 pm

    Jørn Angeltveit’s answer sounds like direct way to do at least part of what you want. He gives you way to access value in field. But realize that merely changing the value of that field will not update the record in the database; to do that you would also need to call the dataset’s Post method. Your question is a very basic one and if you’re building an app with a database backend you would probably be well-served to read up on how to write database apps with Delphi. If you try to go ahead without learning the basics of Delphi TDataset components then you’re likely to end up with messy approach and extra work.

    EDIT: Here’s link to CodeGear site with some helpful docs on TDatasets. It is probably very similar to the documentation you’d find in the Delphi 7 help system (though finding your way through the built-in help can sometimes be confusing):
    http://docs.codegear.com/products/rad_studio/radstudio2007/RS2007_helpupdates/HUpdate4/EN/html/devwin32/fhxr30623_xml.html

    Here’s a good online series that actually focuses on accessing .mdb’s using Delphi’s ADO database components:
    Beginner’s Guide to Databases with Delphi

    Also, Marco Cantu has good sections on it in his book Mastering Delphi. You can pick up a used copy on Amazon for not much money. I used Mastering Delphi 6 when learning Delphi 7 and it was great resource. Mastering Delphi 7 is available, but I would save a few bucks and get used copy of Mastering Delphi 6:
    http://www.amazon.com/Mastering-Delphi-6-Marco-Cantu/dp/0782128742/ref=sr_1_6?ie=UTF8&qid=1296705281&sr=8-6

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

Sidebar

Related Questions

I have the following HTML (note the CSS making the background black and text
Background I am writing and using a very simple CGI-based (Perl) content management tool
Greetings, coders, Background Info and Code I am trying to create a daemon-type program
I'm making a game in Silverlight, and I'd like to give it some background
Background: I have a little video playing app with a UI inspired by the
Background: At my company we are developing a bunch applications that are using the
Background: Some time ago, I built a system for recording and categorizing application crashes
Background: I need to reserve an amount of memory below 0xA0000 prior to my
Background I have a massive db for a SharePoint site collection. It is 130GB
Background I am trying to create a copy of a business object I have

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.