J
John
Hi
Is there a way to create PK called ID via code, given the table name as
string?
Many Thanks
Regards
Is there a way to create PK called ID via code, given the table name as
string?
Many Thanks
Regards
John said:Is there a way to create PK called ID via code, given the table name as
string?
John said:Thanks. Gives me error 'Method or data member not found." on Append in
'idxPrimary.Append fldID' and on Refresh in 'dbBackend.TableDefs.Refesh'.
dbBackend.TableDefs.Refesh
Not sure what the above should be but likely not required. I don't
have any such in my code I execute against another MDB. You might
need it if it was in the MDB from which you were executing the code.
Basically I'd comment it out and if you get wierdnesses happening
later then post back.
Brendan Reynolds said:It's a typo, Tony, the second "r" is missing from the word "Refresh".
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.