VB, always real time error 91, what to do, urgent!

Updated on technology 2024-05-11
17 answers
  1. Anonymous users2024-02-10

    The object variable or with block variable is not set (Error 91).

    There are two steps to creating an object variable. First, you must first declare an object variable. The object variable must then be assigned a correct reference using a set statement.

    Again, with....The end with block must first be initialized with the with statement entry point. There are the following causes and workarounds for this error:

    The object variable you are trying to use has not been assigned with a reference to the correct object.

    Specify or reassign a reference to an object variable. For example, if you omit the set statement in the following **, then referencing myobject will produce an error:

    dim myobject as object 'Create an object variable.

    set myobject = sheets(1) 'Create a correct object reference.

    mycount = 'The count value is assigned to mycount.

    The object variable you are trying to use has been set to nothing.

    set myobject = nothing 'Dispose of this object.

    mycount = 'A freed object is referenced.

    Then specify the reference to the object variable. For example, use a new set statement to set a new reference to an object.

    This object is the correct object, but it is not set because it is not selected in the References dialog box in the object library.

    In the Add Reference dialog box, select an object library.

    The whereabouts of the goto statement inside the with block.

    Don't jump into the with block. Make sure the block uses the with statement entry point to perform initialization.

    When the Set Next Statement command is selected, a line is specified within the with block.

    The with block must be initialized with a with statement.

  2. Anonymous users2024-02-09

    Not a data type.

  3. Anonymous users2024-02-08

    Delete this sentence and see if it is displayed in text1 to know whether the database is connected or not, if not, connect the database first, and then add this sentence and then test.

  4. Anonymous users2024-02-07

    Check whether the database is connected and whether the data table is opened.

  5. Anonymous users2024-02-06

    To access the database, use adodb

    I have a wrapped class here.

  6. Anonymous users2024-02-05

    **Please take a screenshot of the content.

    It should be that the database is not connected, or the **format is wrong.

  7. Anonymous users2024-02-04

    The previous sentence does not return an object, first check whether the strsql string is correctly solved, and add a sentence strsql in front of it to see if there is an error.

  8. Anonymous users2024-02-03

    Check whether ExecuteSQL (strsql) is executed correctly.

  9. Anonymous users2024-02-02

    dim t as data 'Maybe it's a mistake here, it's dim t as date. There are other data that need to be changed.

    It's wrong here, data is a database access object of the god, so it will prompt that there is no source of annihilation and there is an object crack.

  10. Anonymous users2024-02-01

    Is the initial one empty? Take an empty string to run the error caused by cdate, right?

  11. Anonymous users2024-01-31

    The adodc control doesn't load any dataset objects, you close it, of course, something went wrong, and it's related to the opening.

  12. Anonymous users2024-01-30

    This error indicates that your database is not connected properly. Use breakpoint debugging to see if there is a problem with the connection. After connecting, you can addnew in the record set.,Also,See if you need to update it after addnew.。

  13. Anonymous users2024-01-29

    Using the data control?

    You need to associate the database first, so that the recorset object contained in the data control can be initialized correctly, and then you can add the record (addnew) normally, otherwise you need to add the data to **?

    Set the database property (database file) and recordsource property (table name) of the data control

  14. Anonymous users2024-01-28

    The data1 object is not created to be new.

  15. Anonymous users2024-01-27

    You shouldn't have set the RecordSource or RecordSet attributes, but you should have to select a table in the database for it in addition to the join.

  16. Anonymous users2024-01-26

    It seems like the recordset variable is not defined.

  17. Anonymous users2024-01-25

    Your strsql variable doesn't have a SQL statement assigned!

Related questions
10 answers2024-05-11

This is a hidden car because there is a problem with your computer's network equipment. >>>More

8 answers2024-05-11

How to face your mistakes What to do if you make mistakes. >>>More

13 answers2024-05-11

Oh. I kind of get what you mean.

dim ww(9), mi(9), dd as integerdim tempstr as stringtempstr = "" >>>More

8 answers2024-05-11

Search for "Unicom pop-ups" This thing is quite common,Some**Not necessarily can't be opened,Some can be opened**、、Telecom、Unicom Those brutes will also jump to its advertising page for you,1、Call customer service**Complaint,It will ask you if your computer is poisoned and other problems,Regardless of what he said, tell him to be sure that it is your advertisement there,2、The second Ministry of Industry and Information Technology**There is a telecommunications complaint or something,Describe your problem,The content must be determined and must be the malicious hooliganism of the telecommunications company, Cause you to be unable to access the Internet normally, and will automatically open the telecom provider's advertising ** page, but also to explain that they have contacted their customer service and said that it is a 48-hour reply, but it has been three days and has not responded, this matter is not relieved to say, no one will hold you accountable for lying, how embarrassed they are to ask you this, o, and ask them to solve the problem and then make compensation, our purpose is not to compensate for a few dollars, just to let you take you seriously. >>>More