...// generate SQL statement
$result=$dbh->prepare("SELECT * FROM performers WHERE accent='$txt_accent' AND hair='$txt_hair' AND gender='$txt_gender' AND location='$txt_location'");
// execute SQL query
$result->execute()...
Oon my Search page I've got dropdowns that are linked to an SQL database and pull a list of names (e.g. the combination accent northern-brown-male-manchester brings up A & B, southern-grey-female-london brings up X & Y)
This works fine. What I'm trying to do is add an if statement so if no rows...
Hi,
I've got a piece of VBA that logs in to CMS, pulls the data in to the workbook and logs out. This works fine on my (older) desktop PC, but my laptop gives a "run-time error 429 ActiveX component can't create the object" at;
Dim cvsApp As Object, cvsConn As Object, cvsSrv As Object, Rep...
My work have recently upgraded from excel 2003 to 2007 (very progressive!!) and, amongst other problems, I had a macro that imported 2 csv files into an excel workbook that worked fine in 2003 but won't in 2007;
When I run;
Sub Import()
Dim oCSV As Workbook
Set oCSV =...
I currently use the following code to filter for 2 criteria that are required from a range:
Sub FilterRange()
Sheets("Call Centres").Select
Selection.AutoFilter Field:=2, Criteria1:=Range("ICC1").Value, _
Operator:=xlOr, Criteria2:=Range("ICC2").Value
End Sub
Where the criteria required are...
I've trawled through the internet and cannot find anything on this at all.
All I'm after is a macro that will update linked cells once fired, rather thatn having to close a workbook, then open it again, updating the links when prompted!
Anyone got anything?
I've got a workbook with the enclosed code embedded to each worksheet, which format the cells depending on the data entered (I know the code isn't too tidy, I'm only doing this as a favour!!). When more than one cell is selected and data is deleted, I get a Runtime error 13, type mismatch. Gone...
I've got a workbook with the enclosed code embedded to each worksheet, which format the cells depending on the data entered (I know the code isn't too tidy, I'm only doing this as a favour!!). When more than one cell is selected and data is deleted, I get a Runtime error 13, type mismatch. Gone...
golom
thanks you for all your help with my 2 problems
i have tried to input and run the above code but it is returning a error user define type not defined and seleting the top row ("Dim FSO As New Scripting.FileSystemObject")
golom
thanks you very much for you help with this, it works fine.. i am just adapting the code slightly so i can use it with another file and was wondering if it is possible to not only look for a matching string like branch_name but alos to look for any file for the previous day so it looks...
thanks for you feedback
i am trying to think of another way of doing it do you know if it is possible to use the name function and the widcard together, the problem i have is the files are run at different times each night and therfore the name of the file is different each day
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.