472,353 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Problems with editing the VBA code - auto syntax check??

Hi!
I have problems with editing my VBA code. It is connected with some kind of
automatic-correction mechanism in Access which I cannot find. I turned off
Automatic Syntax Check in Options menu and it still is the same. The problem
is that when I try for example to write

Edit1.Value = Date()

Access changes it to Edit1.Value = Date

and there is nothing I can do about this. I've found some information that
it sometimes is connected to open form in access.. The funny thing is that
after I close the form and enter date() it changes to date and the form is
opened in Access!

HELP! I have been trying to enter date() for 30 minutes :)

Chris
Nov 13 '05 #1
2 3076
VBA has:
- a Date statement (read/write) for the system date;
- a Date() function (read only) for the system date.

Whenever you use the Date() function in code, VBA changes it into the Date
statement. It still works, so you just get used to this behavior.

You still need the Date() function for other contexts, e.g. in a query, or
in the Default Value of a control.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Krzysztof Bartosiewicz" <bb***@klub.chip.pl> wrote in message
news:d5**********@nemesis.news.tpi.pl...
Hi!
I have problems with editing my VBA code. It is connected with some kind
of automatic-correction mechanism in Access which I cannot find. I turned
off Automatic Syntax Check in Options menu and it still is the same. The
problem is that when I try for example to write

Edit1.Value = Date()

Access changes it to Edit1.Value = Date

and there is nothing I can do about this. I've found some information that
it sometimes is connected to open form in access.. The funny thing is that
after I close the form and enter date() it changes to date and the form is
opened in Access!

HELP! I have been trying to enter date() for 30 minutes :)

Chris

Nov 13 '05 #2
Thanks!
Chris
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) ...
0
by: Brian K | last post by:
I am new to Apache Batik and I am now doing a SVG Editor for my project. I use Java as programming language. I use Batik to generate the SVG...
14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with...
4
by: Lafer | last post by:
Hello, I am attempting to write a terminal interface program using PowerPC Assembly/C, where I am using an integer-to-ASCII conversion algorithm....
2
by: Rick Strahl [MVP] | last post by:
I seem to have problems when working with large Windows Forms files. What happens is that hte editor looses its syntax color highlighting and...
0
by: Junkguy | last post by:
I need to be able to tell if the blank row of a DataGrid has been edited or not. In a DataGrid, you may notice that if you click on the asterisk...
0
by: Jimmy Tharpe | last post by:
Hi, I am having trouble editing the code-behind files of ASP.NET applications in Visual Studio .NET. I often lose syntax highlighting, code...
2
by: David | last post by:
Dear All I'm trying to use a multi-select listbox as criteria to either add new record or edit the current record of the destiantation table with...
4
by: lyle fairfield | last post by:
Jeff <jnorville@gmail.comwrote in news:d8c844b4-d55e-4b89-b2c4-1d3a0e4ae501@d70g2000hsc.googlegroups.com: If I had to guess I'd guess that...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.