Solved

database fields

Posted on 2000-02-21
3
141 Views
Last Modified: 2010-05-02
how can i make reference to a field in a database ?;for example.
I want to compare the actual date with the one that is stored on the field DATE of my table.I am using a dbf table.
0
Comment
Question by:enryo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Accepted Solution

by:
samopal earned 70 total points
ID: 2543863
You have many ways to do this....

For example, in ADO

Dim cn as new ADODB.Connection
Dim rs as new ADODB.Recordset

'First you need to create yourDSN (Control Panel -> ODBC Data Sources)
cn.open "DSN=yourDSN"
rs.open "myTableName",cn

rs.fields(1)
rs(1)
rs.fields("myField")
rs("myfield")
rs!myfield

-all this gives your the refference to the 2nd field in your table named myfield

HTH
0
 

Author Comment

by:enryo
ID: 2543893
I want to access the table with Data Control
0
 
LVL 2

Expert Comment

by:danlevans
ID: 2559094
enryo,

data1.recordset!myfield

contains the data in myfield of the current record in your database using data control.

have fun,

Dan
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

734 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