Share via

Create Table with Default Value

Anonymous
2010-11-24T19:48:26+00:00

I have a Make Table query that works. I want to set a couple of default values in the Create Table SQL. I don't know the syntax for what I want to do. How do I?:

  • Set default value to a fixed string (i.e., City TEXT ... "San Francisco")
  • Set default value to a value in a table (i.e. CityID Number ... tblVar.CityID)

Thanks!!!

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-11-24T19:58:45+00:00

The data in this table is not accessed directly by any users. It is appended from records in another table and the user never gets to touch it. I'm trying to have it get its default value based on the userID of the person who clicked the button to do the import/append. I guess I'll have to write some code to update the table with this information after the fact.

Thanks for the info Bob.

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more