Hello to all. First time poster.
I have a question about creating tables in Access with an SQL query (or VBA, I guess, if that's not possible, though my example below is SQL). Specifically, I'd like to know how one adds validation rules programmatically. For some reason, I can't seem to find this information.
For instance, for simplicity's sake, let's say I'd like to create a table (table1) with a single variable (varx), a long integer, and I'd like the validation rule to be "<5 or >10".
I know how to do everything except add the validation rule in. So what alterations would I make to this to add it?
CREATE TABLE table1 (varx LONG);
Thanks in advance for any help.
I have a question about creating tables in Access with an SQL query (or VBA, I guess, if that's not possible, though my example below is SQL). Specifically, I'd like to know how one adds validation rules programmatically. For some reason, I can't seem to find this information.
For instance, for simplicity's sake, let's say I'd like to create a table (table1) with a single variable (varx), a long integer, and I'd like the validation rule to be "<5 or >10".
I know how to do everything except add the validation rule in. So what alterations would I make to this to add it?
CREATE TABLE table1 (varx LONG);
Thanks in advance for any help.