Hi,
Can anyone please tell me if we can a select statement to find the constraints. To be clear, will this work in Access, it works in oracle
SELECT u2.table_name
FROM user_constraints u1, user_constraints u2
WHERE u1.table_name = 'PART'
AND u2.r_constraint_name = u1.constraint_name
And also if I want to find out the count of the constraints, or say the count of records in a table is this the correct way, because it is not working for me.
Dim StrSQL As String
StrSQL = " SELECT COUNT(*)"
StrSQL = StrSQL & " FROM PART "
Me!Cons_Number_txt = StrSQL
Me!Cons_Number_txt is a text field in the form and I want to display the count of the record sin PART table in that particular field. Please let me know how I can do that.
Thanks
Can anyone please tell me if we can a select statement to find the constraints. To be clear, will this work in Access, it works in oracle
SELECT u2.table_name
FROM user_constraints u1, user_constraints u2
WHERE u1.table_name = 'PART'
AND u2.r_constraint_name = u1.constraint_name
And also if I want to find out the count of the constraints, or say the count of records in a table is this the correct way, because it is not working for me.
Dim StrSQL As String
StrSQL = " SELECT COUNT(*)"
StrSQL = StrSQL & " FROM PART "
Me!Cons_Number_txt = StrSQL
Me!Cons_Number_txt is a text field in the form and I want to display the count of the record sin PART table in that particular field. Please let me know how I can do that.
Thanks