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 March 16th, 2004, 12:24 AM
musicfanz musicfanz is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 64 musicfanz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Using tab controls

hi all, I need some help here on referring to controls on a tab page control.

This tab page control is on a form (Form4), where the only main control is a unbound combo box that allows the user to select a serialno. Once a serialno is chosen, some of the fields on the tab page will be automatically filled with entries. The underlying table I used for Form4 is "Parts_For_repair".

On the 2nd page of the tab control, I have used an option group (TypesOfRepair) that displays all the types of repair that we have. Some egs include WarrantyRepair, OutOfWarrantyRepair..... Once a user click on either one of these types of repair, i want this record to be saved into another table "Repaired_Parts". But I have problems referencing to these controls on the tab page control.

I've written an event procedure for one of the check boxes in the option group. This is shown below:

Code:
Private Sub chkWarranty_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

    MsgBox "updating warranty repair"
    
    Dim stDocName As String
    
    stDocName = "Query23"
    
    DoCmd.OpenQuery stDocName, acViewNormal, acEdit
    
End Sub


Query23 looks like this:

Code:
UPDATE REPAIRED_PARTS AS R SET R.WARRANTYREPAIR = [FORMS]![FORM4]![CHKWARRANTY].VALUE
WHERE R.SERIALNO=[FORMS]![FORM4]![CBOSERIALNO].VALUE;


The serialno is unique to identify any tuple. The result of this event returns nothing...I've tried to print out the value of chkWarranty using Debug.print me.chkwarranty.value but there's an error and it's returning me nothing..

I gather this error has something to do with the way i reference the control on the tab page cos i tried to insert a checkbox on the main form (that is, outside the tab control), everything works fine.

Pls help.

Thanks.

Rgds,
Tracy

Last edited by musicfanz : March 16th, 2004 at 12:27 AM.

Reply With Quote
  #2  
Old March 16th, 2004, 03:28 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: 13
Have you tired

UPDATE REPAIRED_PARTS AS R SET R.WARRANTYREPAIR = [FORMS]![FORM4]![CHKWARRANTY] WHERE R.SERIALNO=[FORMS]![FORM4]![CBOSERIALNO];


If this doesn't work, you post your sample DB and I will look at it


S_

Reply With Quote
  #3  
Old March 16th, 2004, 08:52 PM
musicfanz musicfanz is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 64 musicfanz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I've tried that too...but there's no effect on the resultant table. I've uploaded the DB (Updates-1) on yahoo briefcase. If u have forgotten the access details, drop me a msg n i'll give u the details.

Thanks.

rgds,
Tracy

Reply With Quote
  #4  
Old March 17th, 2004, 12:50 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: 13
Better remind me

S-

Reply With Quote
  #5  
Old March 19th, 2004, 01:50 AM
musicfanz musicfanz is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 64 musicfanz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I'm still having problem wif this....pls help.

Thanks.

Rgds,
Tracy

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Using tab controls


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 6 hosted by Hostway
Stay green...Green IT