data row in Access using

Posted on 2005-05-11
Last Modified: 2012-08-13

I'm new to unbound controls in and MS access
I'm trying to  Dimension  a variable named  drCustomer .This variable will store a row from an MS Access data base.

Here's how I've writtern it :
Dim drCustomer As dsCustomer.CustomerRow

dsCustomer is a data set I created

It comes up with a squiggley line under     dsCustomer.CustomerRow

After i type in the 'As'  i expect it to display a dropdown box where I can select the dataset I created 'dsCustomer' but it doesn't
which means that I haven't got use of the CustomerRow class

Is there something I need to set up first......

I have added    'Imports System.Data.oleDb'   but didn't make a difference.


Question by:delphimate
    LVL 8

    Accepted Solution

    Dim drCustomer As Recordset

    When you are dimming an object, you need to set it as one of the available options. To store a record (row from a database), a recordset is the obvious choice.
    Being unfamiliar with the options, you were creating a custom variable :)

    LVL 8

    Expert Comment

    Sounds good, thanks.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
    APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now