Creating new table with space in column name

Hi,

I’m having an issue with creating new table using custom database command.
I need to create a table with space in its variable name (Project No) and it’s returning an error message that I can’t resolve.

The error message disappears when I tried ‘ProjectNo’ instead - however I need retain the space in the variable/column name.

Could anyone please point me to the right direction on how to fix the issue?

image

Hi Mario,

You should use double quotes instead of square brackets to wrap the column names.

1 Like

Hi Andrew,

Thank you for the prompt reply - it works like a charm!

Mario, you are welcome!