...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 select * FROM cos_attribute WHERE AssetID = 14 provides a result of
AssetID bunit system_type priority
14 Personnel Services NULL...
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...
...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 solution. My work around was...
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.
...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 = "SACCTX*"
$ADDomain = "OU=Citrix,OU=Servers,OU=DDC,dc=deltads,dc=ent"
$servers = Get-ADComputer -SearchBase $ADDomain -Filter {Name -Like $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"...
...table I want to pull the SSN from there then use the data from Me.Combo14 for the training type then use Date for DateCompleted and DateDue. I just cant figure out a route on how to do this any guidance would be awesome
PersonnelMain.SSN = *, Type = Me.Combo14, DateCompleted = Date, DateDue...
...how to use your code properly
I tried this but ended up with Run-time error 3075
Dim strwhere As String
Dim strSQL As String
strwhere = Forms!Test!Type2.Value
strSQL = "SELECT * FROM QuestionsWrong WHERE QuestionID IN (" & strwhere & ")"
DoCmd.OpenReport "Questions", acViewPreview, , strSQL
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.