And this can be done with a single line of Code using ado to any already existing table
To add constraint use
CurrentProject.Connection.Execute "ALTER TABLE Table1 ADD CONSTRAINT MyConstraint1 CHECK (MyField between 6 and 10)"
To drop constraint use
CurrentProject.Connection.Execute "ALTER...
I have posted a sample in a thread some time ago it has constraints on table based on other tables and other fields in same tables have a look at it Here
Yes there is not runtime but lot of usefull documentation with Office 2010 Technical Preview Invitation
Also access 2010 database opens in 2007 but forms and tables containing new features dont open giving a message that required version is 14
for example I have created triggers in tables...
Use this sql
TRANSFORM First(Format([StartDateTime],"HH:MM") & " " & [shifttype]) AS ValFld
SELECT YourTable.Name
FROM YourTable
GROUP BY YourTable.Name
PIVOT Format(Int([StartDateTime]),"dd/mm/yy");
use on format event of section in which that control is placed
code would be some thing like this
if me.check1=true then
me.control.backcolor=vbred
elseif me.check2=true then
me.control.backcolor=vbgreen
endif
Paste this sql in the query and replace field and table names
TRANSFORM
First(Format([StartDateTime],"HH:MM")) AS ValFld
SELECT YourTable.Name
FROM YourTable
GROUP BY YourTable.Name
PIVOT Format(Int([StartDateTime]),"dd-mm-yy");
I think you are doing it through crosstab wizard
You can complete your query through wizard and then open the query in design view and add further row headers you can add as many as you want