Hi Everyone,
I am using VBA to build an INSERT statement which I then execute and which works fine under English ...
INSERT INTO tbl_Registration (MyTrueFalseField)
VALUES (" & Me.TrueFalseField & ")"
The SQL-String writes True into the table.
But if I run this under German MS-Access, it tries to write Wahr , the German word for True and so falls over.
I would therefore like to get the system to write -1 or 0 instead of True/False and so am wondering how I can easily do this.
Of course I can use an Iif or if-clause to flip this manually but that seems very clunky.
I've googled and searched on the format() function but cannot find anything on True/False. My hope here would be to find syntax to easily switch the values True/False to -1 or 0.
Many thanks on any tips that you can give me.
Regards,
Alan