S
Stephen sjw_ost
Ok, so I thought I could reduce it down to 1 item being looked at by doing
this;
strSQL = "INSERT INTO T_CurrentUsers" & _
"(COMPUTERNAME)" & _
"VALUES(" & rs.Fields(0) & ")"
I am doing this to get just the PC NAME. But I am still getting a syntax
error on the INSERT INTO statement when the code gets to the 2nd cm.Execute.
And the Debug.Print is giving me this in the Immediate Window;
INSERT INTO T_CurrentUsers(COMPUTERNAME)VALUES(WSUSJXC2B2A169A
)
So I now have 1 listing with the single value that I want, but as you can
see there is a very large space between the end of the PC NAME
"WSUSJXC2B2A169A" and the closing parenthasis. I am not sure if this makes
any difference.
Please be pateinet with my lack of understanding. I consider myself to be
only a beginning intermediate, if that. I do not know the ends and outs of
code as well as I would like so when you explain things, please help me to
understand what you are trying to explain. If there is a way that I can
compair the results of this code to a static table to determine who is logged
into my DB then please help me to understand how to do that with this code. I
want to use this code.
Otherwise, what I am thinking is, this code will put the PC NAME of the
current user(s) into a table "T_CurrentUsers", within the same database of
which this code is written, which I will have a static table with all of the
possible PC NAMEs with a discription of the PC NAME, related to
T_CurrentUsers via a query. When the query is ran, it will give the results
based on the 2 tables via the relationship I will put into place. Is this
do-able with this code? If so, how?
Thank you for your patience, understanding and assistance.
Stephen
this;
strSQL = "INSERT INTO T_CurrentUsers" & _
"(COMPUTERNAME)" & _
"VALUES(" & rs.Fields(0) & ")"
I am doing this to get just the PC NAME. But I am still getting a syntax
error on the INSERT INTO statement when the code gets to the 2nd cm.Execute.
And the Debug.Print is giving me this in the Immediate Window;
INSERT INTO T_CurrentUsers(COMPUTERNAME)VALUES(WSUSJXC2B2A169A
)
So I now have 1 listing with the single value that I want, but as you can
see there is a very large space between the end of the PC NAME
"WSUSJXC2B2A169A" and the closing parenthasis. I am not sure if this makes
any difference.
Please be pateinet with my lack of understanding. I consider myself to be
only a beginning intermediate, if that. I do not know the ends and outs of
code as well as I would like so when you explain things, please help me to
understand what you are trying to explain. If there is a way that I can
compair the results of this code to a static table to determine who is logged
into my DB then please help me to understand how to do that with this code. I
want to use this code.
Otherwise, what I am thinking is, this code will put the PC NAME of the
current user(s) into a table "T_CurrentUsers", within the same database of
which this code is written, which I will have a static table with all of the
possible PC NAMEs with a discription of the PC NAME, related to
T_CurrentUsers via a query. When the query is ran, it will give the results
based on the 2 tables via the relationship I will put into place. Is this
do-able with this code? If so, how?
Thank you for your patience, understanding and assistance.
Stephen