Fun Error
 
            
                
                    gerfield                
                
                    Member Posts: 16                
            
                        
            
                    I'm using the c/odbc link in Navision 3.7
and I'm getting this error.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft Business Solutions ApS][Microsoft Business Solutions-Navision ODBC Driver]Expected lexical element not found: <identifier>
/accounts.asp, line 13
Here is the code I'm using
All I'm trying to do is when someone clicks a link on our site they get their user information from Navision. Very simple. Don't get why its not working. Any help would be amazing.
                and I'm getting this error.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft Business Solutions ApS][Microsoft Business Solutions-Navision ODBC Driver]Expected lexical element not found: <identifier>
/accounts.asp, line 13
Here is the code I'm using
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.QueryString("recordID") <> "") Then 
  Recordset1__MMColParam = Request.QueryString("recordID")
End If
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_nav_STRING
Recordset1_cmd.CommandText = "SELECT No_, Name, Search_Name, Name_2, Address, Address_2, City, Contact, Phone_No_, Our_Account_No_ FROM null.Customer WHERE No_ = ?" 
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 200, 1, 255, Recordset1__MMColParam) ' adVarChar
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
All I'm trying to do is when someone clicks a link on our site they get their user information from Navision. Very simple. Don't get why its not working. Any help would be amazing.
0                
            Comments
- 
            are you on sql or Native?
 Old ODBC drivers are not stable. If you are on sql use the sql native drivers.0
- 
            Thanks for answering. I'm on the Native database. Is there any hope?
 thanks for your help0
- 
            I suggest to look at cfront.0
- 
            cfront is good for a web based asp script?0
- 
            ASP with a native database is not a fit. thanks for everyone's help0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 323 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
