Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 3rd, 2007, 01:15 PM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default Refer to Rows and Columns

If I have data on a form displayed in the datasheet view, is there a way to refer to the rows and columns of the datasheet?

Thanks,

Ray

Reply With Quote
  #2 (permalink)  
Old May 4th, 2007, 06:20 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What do you mean when you say "refer"? Do you mean with code? You can do that, but you would have to know what you were going after and refer to the PK of the row, and the column by name, which is probably not what you want to do. Change the datasheet to a continuous form to refer to the data.

Did that help any?

mmcdonal
Reply With Quote
  #3 (permalink)  
Old May 4th, 2007, 09:08 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

The row can be referred to simply by the record number of the data on the form. The column can only be referred to by naming the actual field.

As for datasheet vs. continuous forms, that's a matter of functionality. Most time when I list data, I do in datasheet view. I don't use a continuous form unless I wish to put a control, e.g. command button, along with each record.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply With Quote
  #4 (permalink)  
Old May 23rd, 2007, 09:13 AM
Authorized User
 
Join Date: Oct 2003
Location: , , .
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks Guys, Sorry I didn't get back sooner, but, as sometimes happens, changes were made to the process and my problem went away :) I appreciate the responses.

Ray

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rows 2 Columns kilika Oracle 0 October 14th, 2005 01:16 PM
Columns To Rows alyeng2000 SQL Language 2 March 11th, 2005 03:08 PM
getting a query rows as columns raamts SQL Language 1 February 24th, 2005 04:06 AM
Rows into columns shamsad SQL Language 0 April 7th, 2004 04:39 AM
Rows into columns shamsad Oracle 0 April 7th, 2004 04:38 AM



All times are GMT -4. The time now is 01:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.