continuous forms (1 Viewer)

ray147

Registered User.
Local time
Today, 16:57
Joined
Dec 13, 2005
Messages
129
I have just created a new continuous sub form within a main form to display bookings of a particular date. The date field is in the main form, when updated, the data in the sub from updates. Before this, I was using a list box, however I changed to a continuous sub form since I wanted to have conditional formatting.

Now I'd like to have the option to choose a row of data from the sub form and then enable/disable a command button on the main form depending on certain critera...i'd like to know what is the best way to let the user choose a particular row of data...

i have thouhght of a command button or a option button, but it seems that the control wouldn't have a unique identity pertaining to the row..

any ideas appreciated..

many thanks..
 

RuralGuy

AWF VIP
Local time
Today, 09:57
Joined
Jul 2, 2005
Messages
13,826
Have you tried setting the RecordSelectors to yes? I've also put a command button on each row.
 

llkhoutx

Registered User.
Local time
Today, 10:57
Joined
Feb 26, 2001
Messages
4,018
Here's what you want:

On the form's Oncurrent event, add

If [Specify your condition] then
me!cmdButtonName.enabled=false
else
me!cmdButtonName.enabled=true
end if
 

Users who are viewing this thread

Top Bottom