Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 10th, 2003, 03:53 PM
macquarl macquarl is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 13 macquarl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SubForm questions

I have two questions involving the use of a subform.

The background: I have a form with all the detail about a company and licensing information. At the bottom of the form I have a subform that lists previous licenses (if a new feature or product is purchased a new license is issued)

Question 1 : Is there an easy way to be able to select a record from the subform and display it in the top section (to be able to edit it and say it is no longer valid)?

Question 2 : Is there a way to be able to change the color of the lines of the subform where the cancelled checkbox is on?

The downside to this - I am unfortunately using Access 97 to do this.

Reply With Quote
  #2  
Old November 10th, 2003, 08:27 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
What I would do, instead of using a sub form (no true child-parent relationship between forms), is use a list box to display your other licenses that the customer has. The listbox would be tied directly to the table and when you add a record you refresch your list box to display the new record and when you want to edit and exisiting license you double click on it and bring the data into the form for editing.

OR

Keep track of the type of product the license is for and when a new license is issued for that product, automatically check the old license as cancalled in code durng the process and issueing the new license.


If you use a list box then you can't change the color of the cancelled license and I haven't had and need to do what you've asked for on a line by line case with details, maybe someone else has.

S-

Reply With Quote
  #3  
Old November 13th, 2003, 04:12 PM
macquarl macquarl is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 13 macquarl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Okay. I have my list box set the way I want. It is displaying the license history records that already exist for a given company.

I now am having trouble getting the select record thing to work. When a person double-clicks on one of the records from the history listing I want to display that record.

Reply With Quote
  #4  
Old November 13th, 2003, 10:05 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
Variable1= ListBoxName.Column(0)
Variable2= ListBoxName.Column(3)
Variable3= ListBoxName.Column(4)
Variable4= ListBoxName.Column(8)

The use the variables you need from the listbox and query you table and populate the fields on the form or populate your text boxes directly from the listbox (if all info is present)

S-

Reply With Quote
  #5  
Old November 13th, 2003, 11:04 PM
macquarl macquarl is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 13 macquarl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
That would get the field filled but would that actually bring up that record? Seems to me that this would only create a copy of the record I was trying to bring up.

Reply With Quote
  #6  
Old November 14th, 2003, 09:58 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
This depends on whether you are using Bound or UnBounded forms. If you want to use a bound form then pass the recordset to the source control on the form. IF you are using unbounded forms, then yes, you do pass a copy to the fields which you will later grab and pass back to the table as an update.

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > SubForm questions


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 1 hosted by Hostway