Hi
I am still getting error "Object Required"
Dim apiUrl As String
Dim UsrName As String
Dim Pword As String
apiUrl = "192.168.1.2:80/ISAPI/streaming/picture"
UsrName = "admin"
Pword = "2345."
Call SaveImageFromAPI(apiUrl, UsrName, Pword, Convert.ToString(txttrno.Text))
Thanks
Muhammad Imran AnsariPosted Mar 19, 2025, 5:20 PM
Hello Ramco,
The "Object required" error suggests that
txttrnois not recognized as a valid object in your code. Since you haven't provided the full context (VB6, VBA, or VB.NET), here are some possible causes and solutions:Good Luck!
Eliana BlakePosted Mar 19, 2025, 2:41 PM
It seems like you are encountering the "Object Required" error. In VBA, this error typically occurs when there is an attempt to reference a property or method that does not exist for a particular object-type variable.
Looking at your code snippet, the error might be related to the `SaveImageFromAPI` method. To troubleshoot this issue, ensure that the method `SaveImageFromAPI` is defined and implemented correctly in your VBA project.
Make sure that the parameters passed to the method `SaveImageFromAPI` are of the correct data types and that `txttrno.Text` represents a valid object or control that contains the necessary value.
To provide a more specific solution, we would need to see the implementation of the `SaveImageFromAPI` method and possibly the definition and initialization of the `txttrno` object. Double-checking these elements should help resolve the "Object Required" error you are encountering.
If you could provide additional information on the implementation of `SaveImageFromAPI` or how `txttrno` is defined, I can offer more targeted assistance. Don't hesitate to share more details for further clarification!