Hi 2 all,
Am trying to add details from a VB form to an ms access database using the following code:
strsql = "Insert Into Admin Values ('" &g_login& "', '"&strpass&"');"
I've already declared the DB connection path and strsql is declared as a String.
Yet, from the above code i'm getting the following errors:
1.it's asking for end of statement
2.for the &....& part its saying not applicable to String type
The g_login and strpass are 2 global variables capture values from my 2 textboxes in the form, which take any characters.
If am replacing the '"&....&"' part by e.g. 'Joe', its working ok.
Can anyone plz help...
Regards
Am trying to add details from a VB form to an ms access database using the following code:
strsql = "Insert Into Admin Values ('" &g_login& "', '"&strpass&"');"
I've already declared the DB connection path and strsql is declared as a String.
Yet, from the above code i'm getting the following errors:
1.it's asking for end of statement
2.for the &....& part its saying not applicable to String type
The g_login and strpass are 2 global variables capture values from my 2 textboxes in the form, which take any characters.
If am replacing the '"&....&"' part by e.g. 'Joe', its working ok.
Can anyone plz help...
Regards