A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form and QUERIES data



 
 
Thread Tools Display Modes
  #1  
Old November 5th, 2008, 09:42 AM posted to microsoft.public.access.tablesdbdesign
Cipher[_2_]
external usenet poster
 
Posts: 1
Default Form and QUERIES data

I need to test the values within a TABLE and a QUERY of the TABLE. I would
like to test the value of a COLUMN for each ROW of a TABLE until the EOF has
been reached. It would be nice if the records and columns were part of a 2D
Array. This way I could check any data field within the TABLE or QUERY and do
math such as: IF COLUMN 6/ROW 20 = "January", then COLUMN 1=MIN_MONTH.

How can I read the ROW/COLUMN data within each intersecting cell. I need the
VBA syntax for this operation...thanks everybody.

  #2  
Old November 5th, 2008, 01:23 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Form and QUERIES data

Use a recordset to programmatically loop through records.

Here's an example:
http://allenbrowne.com/func-DAO.html...cordsetExample

You can programmatically loop through the Fields of the recordset (from 0 to
Fields.Count -1) to examine each one in turn.

But before you go to the trouble of doing this, you might be better advised
to spend your time learning about normalization. Databases are radically
different beasts that spreadsheets. If you are looping through the columns,
you may have similar data in many columns, which is not the right way to
design a database. You might start by asking Access to analyze your table:
Tools | Analyze | Table

Here's a basic example of normalized tables:
http://allenbrowne.com/casu-06.html
http://allenbrowne.com/casu-23.html
And here's a bunch more links:
http://www.accessmvp.com/JConrad/acc...abaseDesign101

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Cipher" u47407@uwe wrote in message news:8cba4ff9cce93@uwe...
I need to test the values within a TABLE and a QUERY of the TABLE. I would
like to test the value of a COLUMN for each ROW of a TABLE until the EOF
has
been reached. It would be nice if the records and columns were part of a
2D
Array. This way I could check any data field within the TABLE or QUERY and
do
math such as: IF COLUMN 6/ROW 20 = "January", then COLUMN 1=MIN_MONTH.

How can I read the ROW/COLUMN data within each intersecting cell. I need
the
VBA syntax for this operation...thanks everybody.


  #3  
Old November 11th, 2008, 05:18 PM posted to microsoft.public.access.tablesdbdesign
Cipher via AccessMonster.com
external usenet poster
 
Posts: 36
Default Form and QUERIES data

Thank you...I will look into these links and get back to you with my findings.
Thank you again. If I have a Time Issue with this, can I get someone to help
me with the two forms?

Allen Browne wrote:
Use a recordset to programmatically loop through records.

Here's an example:
http://allenbrowne.com/func-DAO.html...cordsetExample

You can programmatically loop through the Fields of the recordset (from 0 to
Fields.Count -1) to examine each one in turn.

But before you go to the trouble of doing this, you might be better advised
to spend your time learning about normalization. Databases are radically
different beasts that spreadsheets. If you are looping through the columns,
you may have similar data in many columns, which is not the right way to
design a database. You might start by asking Access to analyze your table:
Tools | Analyze | Table

Here's a basic example of normalized tables:
http://allenbrowne.com/casu-06.html
http://allenbrowne.com/casu-23.html
And here's a bunch more links:
http://www.accessmvp.com/JConrad/acc...abaseDesign101

I need to test the values within a TABLE and a QUERY of the TABLE. I would
like to test the value of a COLUMN for each ROW of a TABLE until the EOF

[quoted text clipped - 8 lines]
the
VBA syntax for this operation...thanks everybody.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...esign/200811/1

  #4  
Old November 11th, 2008, 11:32 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default Form and QUERIES data

"Cipher via AccessMonster.com" u47407@uwe wrote in message
news:8d09bc4b40560@uwe...
Thank you...I will look into these links and get back to you with my
findings.
Thank you again. If I have a Time Issue with this, can I get someone to
help
me with the two forms?


If you get stuck at a particular point, feel free to post a question.

Please don't email us directly: we all have busy time schedules as well.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.