i am hoping that this is possible. i have uploaded some tables and a form.
on the form i want to dbl click an item and if that customer has course items remaining on a course that has an equal ItemID as the one selected then enable radio button x
they way the courses and course items are linked is
tblCourses (CourseID | CourseName | ItemID | ItemQuantity | CoursePrice | ExpiryDate)
tblCourseItems (CourseItemsID | CourseID | ItemsID | CourseItemPrice(this is theindividual price, from tblCourses.CoursePrice / ItemQuantity))
then in tblClientCourse is where the records for the course purchases are kept and remaining amounts.
ClientCourseID | OrdersItemsID | ClientDetailsID | DatePurchase | DateExpiry | ItemsRemaining)
i would like to say
PrivateSub frmDepartures-PriceChange_OnLoad()
IIf [tblClientCourse].[ClientDetailsID]=[Forms].[Departures].[ClientDetailsID] where [tblClientCourse].[ItemsRemaining]>0 and IIf [tblCourseItems].[ItemsID]=[Forms].[DeparturesPaymentScreen].[ItemList].[Column](2) then RadioButton.SetProperty=Enable
ElseIF RadioButton.SetProperty=Disable
EndSub
if you cant follow this then please dont be mad. its my first attempt at vba from scratch. wether the method will work or not i dont know but i need to be able to get this in before i can answer that. so if you guys dont mind correcting this for me it will be very much appreciated.
oh and i would like to put this in frmDeparturesPaymentScreen-PriceChange
thanks graham
on the form i want to dbl click an item and if that customer has course items remaining on a course that has an equal ItemID as the one selected then enable radio button x
they way the courses and course items are linked is
tblCourses (CourseID | CourseName | ItemID | ItemQuantity | CoursePrice | ExpiryDate)
tblCourseItems (CourseItemsID | CourseID | ItemsID | CourseItemPrice(this is theindividual price, from tblCourses.CoursePrice / ItemQuantity))
then in tblClientCourse is where the records for the course purchases are kept and remaining amounts.
ClientCourseID | OrdersItemsID | ClientDetailsID | DatePurchase | DateExpiry | ItemsRemaining)
i would like to say
PrivateSub frmDepartures-PriceChange_OnLoad()
IIf [tblClientCourse].[ClientDetailsID]=[Forms].[Departures].[ClientDetailsID] where [tblClientCourse].[ItemsRemaining]>0 and IIf [tblCourseItems].[ItemsID]=[Forms].[DeparturesPaymentScreen].[ItemList].[Column](2) then RadioButton.SetProperty=Enable
ElseIF RadioButton.SetProperty=Disable
EndSub
if you cant follow this then please dont be mad. its my first attempt at vba from scratch. wether the method will work or not i dont know but i need to be able to get this in before i can answer that. so if you guys dont mind correcting this for me it will be very much appreciated.
oh and i would like to put this in frmDeparturesPaymentScreen-PriceChange
thanks graham