.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 9th, 2005, 06:39 PM
rhinton rhinton is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 19 rhinton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 41 sec
Reputation Power: 0
Displaying the records of a MS Access Database

I was wondering if it is possible to show one record based on whether a certain table and a certain table index is selected?

Reply With Quote
  #2  
Old July 13th, 2005, 04:07 PM
rhinton rhinton is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 19 rhinton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 41 sec
Reputation Power: 0
Exclamation

All I need is a little help. Let me clarify my question a little bit. I have a form I designed. Based the user's selection amongst a group of radiobuttons, the program will open a table. Now I want the first textbox to be binded to the key field(ndate) of all the tables. All the tables have the same fields, it is just that the tables have different names. Now with the radiobutton selected and ndate value entered, the user presses a button and the other two textboxes display the other to fields of the table. Now I ask again , is this possible.

Reply With Quote
  #3  
Old July 14th, 2005, 10:35 AM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Infernal Technomancer
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: DevHardware
Posts: 235 Dngrsone User rank is Private First Class (20 - 50 Reputation Level)Dngrsone User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 21 h 29 m 34 sec
Reputation Power: 4
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
So, what you are saying is that each radio button corresponds to one of the tables, and by changing buttons, the user can surf the different tables for the same variable (ndate) which happens to be the index?

Reply With Quote
  #4  
Old July 14th, 2005, 07:00 PM
rhinton rhinton is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 19 rhinton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 41 sec
Reputation Power: 0
Each radiobuttons do correlate to a single table in the database, but they are not binded to anything. I am using a simple IF THEN statement like , IF Radiobutton1.Checked = True THEN...............
You see the form has a label and a textbox the label's text is Date:, so the user would input a date and press the view button. Now what I want it to do from there is like a Sql Select command. I want the other two textboxes to display the other two fields of the selected table. For instance, I input 7/14/05 and press view. I want the record that has 7/14/05 in the ndate column to be displayed showing the other two columns (pk3,pk4) in the corresponding textboxes on the form.

Reply With Quote
  #5  
Old July 15th, 2005, 11:01 AM
Dngrsone's Avatar
Dngrsone Dngrsone is offline
Infernal Technomancer
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Location: DevHardware
Posts: 235 Dngrsone User rank is Private First Class (20 - 50 Reputation Level)Dngrsone User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1Folding Points: 340209 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 21 h 29 m 34 sec
Reputation Power: 4
Send a message via ICQ to Dngrsone Send a message via Yahoo to Dngrsone
You should be able to use your IF statement to call up a form-- build a form template, change it to use the first table, save as, then change it to second table, save as, etc.

The IF statement would then call up the appropriate form (or query, depending on whether you want to edit or just view) depending on which button is punched.

My apologies for no providing you a script, my VB skills are severely lacking at the moment

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Displaying the records of a MS Access Database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT