I have been trying to figure this out for a number of days now.
I am programming with Microsoft Visual Studio C# language. I connect to Navision perfectly fine using ODBC and see all the tables i want to.
The Goal.
Update the ETA DATE and ETA QTY fields in the Navision Item table with new ETA DATE and new ETA QTY values. (very simple huh)
The Problem
When i use the sql update command:
“UPDATE Item SET “ETA QTY” = ‘31’, “ETA DATE” = '{d ’ “2006-12-01” ‘}’ WHERE No_ = ‘640145’”
I receive the following error:
{“ERROR [42000] [Simba][SimbaEngine ODBC Driver]UPDATE Item SET “ETA QTY” = ‘31’, “ETA DATE” = '”{d ‘“2006-12-01”<< ??? >>’}’ WHERE No_ = ‘640145’\r\nERROR [42000] [Simba][SimbaEngine ODBC Driver]Syntax Error."}
The Issue
It does not like the format of my date. Does anyone have any sample working sql code that updates a field of type date in Navision.
If not can someone please push me in the right direction. My problem is simple. I do not know the correct format of a date to update a date field inside a Navision table. I have switched up the sql code above in more ways then one to try and make it work with no luck. If someone can figure this out for me it would be greatly appreciated.
Thanks for the response. But yes i have tryed that. the reason for the quotes is that i was just trying different ways to write the command hoping the driver would be able to work with it.
I still have not had any luck at updating a date field in Navision via ODBC. Any help would be greatly appreciated.
Any code snippents of sql update date type commands that have actually worked. I would actually love to see if anyone in the world has actually made it happen.
I’ve tried to install N/ODBC on my machince, but am having some technical difficulties. The thing I wanted to check was the Simba call that your error is showing up. Is Simba used for N/ODBC I know MS are a Simba customer.
Also is your field “EA Date” a DT field or just a date field?
If I can overcome my NODBC install issue I will see if I can try to get a solution for this.