Forum: LIVE PLC Questions And Answers
March 9th, 2021, 04:39 AM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
March 8th, 2021, 02:39 PM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
March 5th, 2021, 01:42 PM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
March 5th, 2021, 12:48 PM
|
Replies: 60
Views: 4,052
I suppose it depends on how the VBA handles the...
I suppose it depends on how the VBA handles the Date format etc. My code was done on a Scada system where for some reason DATE does not work when populating the table, so had to format it in the way...
|
Forum: LIVE PLC Questions And Answers
March 5th, 2021, 11:56 AM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
March 5th, 2021, 11:53 AM
|
Replies: 60
Views: 4,052
Right This is how I got it to work
First I...
Right This is how I got it to work
First I declared the variables as I did not have any
Notice the date & time need a ' either side of the format date or time (it is difficult to see the ' as it's...
|
Forum: LIVE PLC Questions And Answers
March 5th, 2021, 08:17 AM
|
Replies: 60
Views: 4,052
I think the "EMPTY" bit may be the problem
...
I think the "EMPTY" bit may be the problem
DT_FIM_RECEBIMENTO = " & aaaEmpty _
I have never heard of using this it is normally
DT_FIM_RECEBIMENTO IS NULL
However, I tried to recreate this but...
|
Forum: LIVE PLC Questions And Answers
March 5th, 2021, 02:24 AM
|
Replies: 60
Views: 4,052
I agree with Mikey, one other thing to try is...
I agree with Mikey, one other thing to try is start with a small bit of the SQL string i.e. instead of populating all the fields just start with one, like update the total litres, then build on it. ...
|
Forum: LIVE PLC Questions And Answers
February 27th, 2021, 03:16 AM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
February 26th, 2021, 01:40 PM
|
Replies: 60
Views: 4,052
Like I said previously, SQL strings have to be...
Like I said previously, SQL strings have to be exact or they often fail.
another one to watch out for is if the length of the string is very long and you want to put it on two lines you have to use...
|
Forum: LIVE PLC Questions And Answers
February 26th, 2021, 11:20 AM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
February 26th, 2021, 09:44 AM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
February 25th, 2021, 12:39 PM
|
Replies: 60
Views: 4,052
Not sure if this helps but in excel this is...
Not sure if this helps but in excel this is typical problem.
An automation error could occur when you are referring to a workbook or worksheet via a variable, but the variable is no longer active. ...
|
Forum: LIVE PLC Questions And Answers
February 25th, 2021, 03:36 AM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
February 24th, 2021, 02:16 PM
|
Replies: 60
Views: 4,052
|
Forum: LIVE PLC Questions And Answers
February 24th, 2021, 02:16 AM
|
Replies: 60
Views: 4,052
First of all have you created a "DSN" (Data...
First of all have you created a "DSN" (Data source name), this is the easiest way to configure the connection string, so you go to Control panel, system & security, administrative tools, ODBC Data...
|
Forum: LIVE PLC Questions And Answers
February 23rd, 2021, 04:01 AM
|
Replies: 60
Views: 4,052
Here is some code using VB, might vary in SE
...
Here is some code using VB, might vary in SE
Option Explicit
Dim GroupStr1,SQLStr, BatchIDStr As String
Dim Rs1 As New ADODB.Recordset
Dim Conn1 As New ADODB.Connection
Dim Times As Variant...
|