How to I merge multiple rows of data from the same table with the same ID. I have tried group by by I get the following error Column 'cos_attribute.bunit' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
The running this query...
Hello All,
I am trying to loop this until it hits the top level parent groups. Currently I get the users group then the group of those groups. I want to be able to go up until I hit the top group. I could probably nest a few more foreach statements but there has to be a cleaner way to do this...
I tried SACCTX[0-9][0-9][0-9] and SACCTX\d{3} but it pulled no servers in my full code. Also found out today that I can run the commands I needed on all of the SACCTX* servers so I will just leave it as is. Thanks for the recommendations. I will still toy around with it to see if I can find a...
I will try the SACCTX[0-9][0-9][0-9] in the morning although I believe I have tried that already. I am trying to get things that are like SACCTX123 and NOT like SACCTXABC.
Hello all,
Im trying to sort by servers named SACCTX001 - SACCTX999 but everything I have tried seems to not work. What I have currently brings up some extra servers that I do not need I have tried SACCTX[0-9], SACCTX### and SACCTX/n. Does anyone know what I should be using?
$filter =...
I am working on a script that adds a local administrator to remote systems. This is what i have so far but on some of the systems the account might already exists so the first part changes the password for it the second two add an account and add it to the administrators group. Everything works...
Well guess i asked too soon figured it out
CurrentDb.Execute "INSERT INTO Training (SSN, Task, DateCompleted, DateDue) SELECT SSN, '" & Me.Combo14 & "', Date(), Date() From PersonnelMain"
Having a bit of trouble getting this to run i found this http://www.1keydata.com/sql/sqlinsert.html witch talks about what you gave me but i cant get it to run tried it the way you had it this way and without the currentdb.execute still no luck.
CurrentDb.Execute INSERT INTO "Training" ("SSN"...
I have a database that keeps track of employee training completion and due dates and im trying to figure out how to append a new training record to everyone’s record in the database. what I have now is if a new user is created a template is put into their record with all of the required...
I switched my if than statement to be more efficient and changed it to 10,30 instead of 10 or 30 like dhookom recommended. I dont know how currentdb.querydefs works so i tried the bellow code. Do you know the problem with the code bellow or can you tell me how to use your code properly
I tried...
I repeated it because when i had it the other way it kept putting OR in front of the first append no matter what so i just changed it to that. I was missing the <> so that should solve that problem.
This is the SQL code i am using. Not being able to pass the operator into the query is the...
I have a text box that uses this code to append numbers together for a criteria for a query.
Dim AddText As String
Dim NewText As String
Dim strOr As String
If Forms!Test!Type2.Value = "" Then
strOr = ""
Oldtext = Forms!Test!Type2.Value
AddText = Me.QuestionID
NewText = Oldtext &...
Got it figured out and this is how.
Dim strtype, strwhere, strDateField, strsubtype, strname As String
Const strcJetDate = "\#mm\/dd\/yyyy\#"
strDateField = "[DateDue]"
strname = "[Name]"
strsubtype = "[Type]"
strtype = Me.txtType
If Not IsNull(Me.txtsubtype) Then
strwhere =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.