Hi,
I have problem with order in sql insert.
- I have one global variable defined in access module.
this variable I set on value just like this:
An now when I clicked button in form I want to insert this value into my form. I tried:
And when I run this line access display msgbox "Insert parameter value" with text: "us.value"
But I don't want display variable in msgbox, I want insert variable.value without msgbox.
I have problem with order in sql insert.
- I have one global variable defined in access module.
Code:
public us as string
Code:
us = environ("USERNAME")
Code:
DoCmd.RunSQL ("INSERT INTO HISTORIA_OPERACJI(kto, co, ile, operacja, login) VALUES(" & Me.kto_wst & ", " & Me.nr_ref_wst & ", " & Me.ile_wst & ", " & 1 & "," & us & ");")
But I don't want display variable in msgbox, I want insert variable.value without msgbox.