HI,
I'm using MS Access as a frontend to PostgreSQL database. And I have run into dead end:
How would I get return value of passthrough SQL INSERT statement?
I tried something like this:
strSQL = "INSERT INTO someTable (col1, col2) VALUES ('val1', 'val2') RETURNING col0"
'Create passtrhough query dynamically (another function)
CreateSPT ("some_temp_query", strSQL)
idvalue = DLookup("col0", "some_temp_query")
Apparenty this way INSERT statement will be called 2 times :) Does anybody know what is the correct way? I have run out of ideas
Edit: I'm using latest psqlODBC drivers