473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Syntax error in Access VBA. Trying to change the source property thru VBA

Below is a line of code that should work but doesn't.
I am trying to change the code via access VBA.

[code] Me!WapvWk1_txtbx.ControlSource = "=DLookup("[SumOfAnn_Prem]", "BBDK_WBus_New_2019_Wk1_Query")"
[code]

Not sure what is wrong. I have tried to find the answers many times in many places.

Please Help and I thank you in advance.
Jan 8 '19 #1
1 1652
Please forgive me for answering my own ?
Here goes.
[code]
Me!WapvWk1_txtbx.ControlSource = "=DLookup(""[SumOfAnn_Prem]"", ""BBDK_WBus_New_2019_Wk1_Query"")"
[code]
Requires two sets of Quotes "" like this to correct the problem .
But have no idea WHY... that's my only ?

Thanks
Jan 8 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: FaYYaZ | last post by:
Hi All I am getting error "Syntax error " when trying to define a class Like Class myClass Public height Public ID Private t_width
3
by: KevLow | last post by:
Hi, Hope some kind soul can help me out here.. I'm trying to programmatically modify the column headings of a crosstab query such that it can be dynamic based on user specified period (Month...
1
by: amitbadgi | last post by:
HI i am getting the foll error while conv an asp application to asp.net Exception Details: System.Runtime.InteropServices.COMException: Syntax error in UPDATE statement. Source Error: Line...
2
by: david | last post by:
Anyone could give me a hand about this syntax error? Thank you. David Source Code: Dim conn As New SqlConnection(strConn) Dim daAngio As New SqlDataAdapter(strSelectStatement, conn) 'Create a...
1
by: jomurf | last post by:
Not sure if this is the right forum. I'm using Microsoft Query to get data from our ERP. However, every time I try to sum a column, I get a syntax error. Here's the sql statement: SELECT...
2
by: RAG2007 | last post by:
Hi, I'm running an ADP with SQL Server as back end. On a main form, my subform is coming up blank. When I was running as an mdb with no back end I didn't have this problem. I get an error "Syntax...
1
by: praom2104 | last post by:
i m newbie to linux......wen ever i create database it returns an error as "mysql> create databases new; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that...
1
by: Michael Taylor | last post by:
What is wrong with this sql statement? ORA-06550: line 1, column 9: PLS-00103: Encountered the symbol "01" when expecting one of the following: begin function pragma procedure subtype type current...
2
by: 0310Chandu | last post by:
UPDATE Employer SET Employer.17-Comments = Replace(,Chr$(13) & Chr$(10)," "); it is giving syntax error at "-". In Design view the field is showing as "17-Comments). Hence used - with field name
3
by: Angel091Wings | last post by:
Running a macro to format tables in a Word document - setting colors and Bolding labels work fine. I get a 'syntax' error when trying to FormatTables. Here is the part of the code that troubles me....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.