<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792719#M75880</link>
    <description>&lt;P&gt;It's a local DATABASE so dosn't matter if i give the password or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the VBA code that i gave, i'm using it on excel to look for the parts (Num) in the database (MySQL Server). it works...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now&amp;nbsp; i'm trying to use the same programme in Inventor to do the same work (to show in the&amp;nbsp; listbox1 all the number of parts which start with the value of the textbox1.value. but it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a configuration to make befor run the programme.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 13:56:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-15T13:56:28Z</dc:date>
    <item>
      <title>Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8791780#M75876</link>
      <description>&lt;P&gt;Please, i'm looking to connect Inventor Professionnal 2019 to a DATABASE in MySQL 8.0 using a VBA code.&lt;/P&gt;
&lt;P&gt;i maked some tests in Excel and it works.&lt;/P&gt;
&lt;P&gt;but it doesn't work using the same Code in VBA editor of Inventor.&lt;/P&gt;
&lt;P&gt;i cheked the reference of the editor. their are the sames in Excel. So i don't know how resolve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is my VBA code :&lt;/P&gt;
&lt;PRE&gt;Private Sub CommandButton1_Click()
UserForm
End Sub

Private Sub UserForm()
   Dim Cn As ADODB.Connection
  Dim Server_Name As String
 Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
   Dim SQLStr As String
  Dim rs As ADODB.Recordset
 Set rs = New ADODB.Recordset
    Dim Num As String

    Server_Name = "127.0.0.1"
    Database_Name = "base"
    User_ID = "root"
    Password = "m02pas"

    Num = TextBox1.Value

    SQLStr = "SELECT numero FROM table01 WHERE numero LIKE '" &amp;amp; Num &amp;amp; "%'"

    Set Cn = New ADODB.Connection
    Cn.Open "Driver={MYSQL ODBC 8.0 Unicode Driver};Server=" &amp;amp; Server_Name &amp;amp; ";Database=" &amp;amp; Database_Name &amp;amp; ";Uid=" &amp;amp; User_ID &amp;amp; ";Pwd=" &amp;amp; Password &amp;amp; ";"
    rs.Open SQLStr, Cn, adOpenStatic

    a = rs.GetRows
    ListBox1.ColumnCount = UBound(a, 1) + 1
    ListBox1.List = Application.Transpose(a)
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
End Sub

Private Sub CommandButton2_Click()
Unload UserForm1
End Sub
&lt;/PRE&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 07:28:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8791780#M75876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-15T07:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792394#M75877</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the Autodesk User's Community..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to be asking this over in the Inventor Customization forum &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will have the moderator relocate your posting there to best suit your needs.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:18:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792394#M75877</guid>
      <dc:creator>Mark.Lancaster</dc:creator>
      <dc:date>2019-05-15T12:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792402#M75878</link>
      <description>&lt;P&gt;Thank you verry much&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 12:19:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792402#M75878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-15T12:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792682#M75879</link>
      <description>&lt;P&gt;First, what doesn't work?&lt;/P&gt;
&lt;P&gt;Second, you just let everyone know your username and password.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 13:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792682#M75879</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2019-05-15T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792719#M75880</link>
      <description>&lt;P&gt;It's a local DATABASE so dosn't matter if i give the password or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the VBA code that i gave, i'm using it on excel to look for the parts (Num) in the database (MySQL Server). it works...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now&amp;nbsp; i'm trying to use the same programme in Inventor to do the same work (to show in the&amp;nbsp; listbox1 all the number of parts which start with the value of the textbox1.value. but it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there a configuration to make befor run the programme.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 13:56:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792719#M75880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-15T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792938#M75881</link>
      <description>&lt;P&gt;Add stop and watch rs and a.&lt;/P&gt;
&lt;P&gt;See if they get value from SQL.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:58:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8792938#M75881</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2019-05-15T14:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8794516#M75882</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;
&lt;P&gt;i'm biginner too so&amp;nbsp;can you tell me how to writ it in the code please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 07:13:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8794516#M75882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-16T07:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8803737#M75883</link>
      <description>&lt;P&gt;My guess is that you have a 32-bit version of Office installed and the library you're referencing to access the database is also 32-bit.&amp;nbsp; Inventor is 64-bit and uses the 64-bit version of VBA.&amp;nbsp; It's possible to install a 64-bit version of Office.&amp;nbsp; I don't know about the database library.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 06:56:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8803737#M75883</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2019-05-21T06:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Inventor Professionnal 2019 to MySQL8.0 Database</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8803866#M75884</link>
      <description>&lt;P&gt;Thank you verry much for your answer.&lt;/P&gt;
&lt;P&gt;the problem was resolved by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/468207"&gt;@gmassart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is the solution :&lt;/P&gt;
&lt;PRE&gt;'Déclaration de la variable de connexion
    Dim cnx As ADODB.Connection
    Dim rst As ADODB.Recordset
    Set cnx = New ADODB.Connection
    Set rst = New ADODB.Recordset
    'Définition de la chaîne de connexion
    'cnx.ConnectionString = "UID=" &amp;amp; NomUtilisateur &amp;amp; ";PWD=" &amp;amp; MotDePasse &amp;amp; ";" &amp;amp; "DRIVER={SQL Server};Server=" &amp;amp; NomServeur &amp;amp; ";Database=" &amp;amp; NomBaseDeDonnées &amp;amp; ";"
    cnx.ConnectionString = "Driver={SQL Server};Server=[InfoCachée];Database=[InfoCachée];Trusted_Connection=yes;"
    'Ouverture de la base de données
    cnx.Open
    'Exécution de la requête
    rst.Open [InfoCachée], cnx
    rst.Close
    Set rst = Nothing
    Set request = Nothing
    Set cnx = Nothing&lt;/PRE&gt;
&lt;P&gt;thanks again for your comment&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 07:40:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/connect-inventor-professionnal-2019-to-mysql8-0-database/m-p/8803866#M75884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-21T07:40:22Z</dc:date>
    </item>
  </channel>
</rss>

