Excel to access - ms-access

With respect to below macro. Which VB Reference setting I have to do for run this macro.
As I got error "Run-time error '-2147217900 (80040e14)':
Syntax error in From clause.
Updating MS - Access fields through MS-Excel cells
kindly guide.......

To use ADO stuff you have to add the below to your references:
Microsoft ActiveX Data Objects x.x Object Library
As for the syntax error, perhaps pasting some code and telling us which line the debugger says is erroring out on would help. My initial guess is some sort of select statement that is selecting something that doesn't exist -- but without code/intent/example data it would be hard to pinpoint.

Related

Why power bi gives the following error :Fatal error encountered during data read.. '?

When I am trying to get my data from MySQL in Power bi, after some time power bi gives the following error: Failed to save modifications to the server. Error returned: 'OLE DB or ODBC error: [DataSource.Error] MySQL: Fatal error encountered during data read.. '.
Since I am working with json data type, I assume that perheps there is a problem with that, but how to solve this error?
I was looking for solution but I found only something about changing data type. So I did so but it stils gives me this error.
The error there seems to be about the data source not the data type.
We ve had few of these before, it might have to do with some edit done in the data source which i assume in an SQL database.
One solution would be to revoke PBI access and grant it again.

Syntax error when trying to create a database with name: 9e1617bafr1_1

yesterday I stumbled upon a weird problem.
I have a PHP script that creates mysql databases for me based of some input.
When the script tried to generate a database with the name "9e1617bafr1_1" (without quotes) and I got this error "MySQL Error 1064: You have an error in your SQL syntax".
Query is CREATE DATABASE IF NOT EXISTS 9e1617bafr1_1
I also get the error when trying to execute it on https://de.piliapp.com/mysql-syntax-check/ and http://sqlfiddle.com/
I resolved it by using backticks before and after the database name but I'm still wondering why I got this error in the first place as the creation of "9d1617bafr1_1", "9f1617bafr1_1" and so on worked flawlessly.
Unfortunately I did not find anything useful on this behavior on the internet and as I'm very curious about it I wanted to ask if anybody know if this is a reserved word or if it violates the SQL standard in any way?
9e1617bafr1_1 is parsed as number (9e1617) followed by a character string (bafr1_1). Your other attempts, "9d1617bafr1_1", and "9f1617bafr1_1", don't start with scientific notation, so they don't get parsed that way.

Undefined function 'mid' in expression in MS Access

I am trying to write a query in MS Access, and receiving the error "Undefined function 'mid' in expression' when I try to execute it.
SELECT MID([ColumnName], 4,2)
FROM tblName
As I understand it, the MID function is the MS Access equivalent to Substring. Both the table and the column definitely exist. What could be causing this error?
Check 'References' in 'Tools' menu in VBA, there must be some 'MISSING' libraries.

JdbcOdbc Driver Fails to Find the Replace Function in MS Access

Good people,
I am trying to execute an SQL query against an MS Access database through my Java program. The program uses the JdbcOdbc driver. The query contains the inbuilt Replace function in it. It looks something like this:
SELECT Replace(first_name, '-', ' ') AS f_name FROM patient WHERE....
The program fails with the following error: "[Microsoft][ODBC Microsoft Access Driver] Undefined function 'Replace' in expression."
How can this be? Other functions such as LCase and Trim work just fine. Also, the Replace function works okay when executed directly on the back end.
Your query can not use the Replace() function unless it is run from within an Access session.
The situation is the same as if you were attempting to use a user-defined function. The db engine can only utilize those with assistance from the Access expression service, which is only available from within an Access session.

SSIS can't use variables (Flat File > OLE DB Command), Must declare the scalar variable "#"

Apologies, I'm an SSIS noob and I'm struggling with trying to import a flat file and do an OLE DB command WHILE including a variable in the SqlCommand.
You can see my query and the attempt to include an already defined variable. The error is displayed below:
Must declare the scalar variable "#" I understand what the error is saying, but after hours of searching, I cannot figure out how to use variable in the OLE DB Command.
Thanks in advance for any assistance.
Try putting the ssis variable [user::ClientID] into a derived column and add it to the data flow. You should be able to use a ? and assign that value to your query just like any other value in your data flow.