473,508 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NewRecord - strange

If i type NewRecord in some code, VB change to newrecord with lower-case
letter. If I open a new database on the same computer the NewRecord keyword
act normally. Ha anybody experienced something like this??
TIA

Sigurd
Nov 12 '05 #1
4 2385
Access is remembering something that was called "newrecord".

To help if forget, do this inside some procedure:
Dim NewRecord As Integer

Compile.
Save.
Delete the stupid line again.
Compile.
Save.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html

"Sigurd Bruteig" <nb****@online.no> wrote in message
news:bA********************@news2.e.nsc.no...
If i type NewRecord in some code, VB change to newrecord with lower-case
letter. If I open a new database on the same computer the NewRecord keyword act normally. Ha anybody experienced something like this??
TIA

Nov 12 '05 #2

"Allen Browne" <ab***************@bigpond.net.au> wrote in message
news:p9******************@news-server.bigpond.net.au...
Access is remembering something that was called "newrecord".

To help if forget, do this inside some procedure:
Dim NewRecord As Integer

Compile.
Save.
Delete the stupid line again.
Compile.
Save.

--

Thank you. Now is is back to NewRecord, but it seems like there is a problem
in some forms where I have used NewRecord. When i go to a new record, the
new record, and next record in the navigation bar is not disabled, and it is
possible to open an endless number of new records. Do you have any ideas??

Sigurd
Nov 12 '05 #3

"Allen Browne" <ab***************@bigpond.net.au> wrote in message
news:j8******************@news-server.bigpond.net.au...
That sounds like normal behaviour. If you do not want a user to be able to
add new records, set the form's AllowAdditions property to No. Unless the
record is already dirty, this will prevent new entries.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html


Now it is back to normal. It seems like I had to comment out all NewRecord
code, run your metode in every classmodule affected, and then decomment the
code again. Thank you again.

Sigurd
Nov 12 '05 #4

"Sigurd Bruteig" <nb****@online.no> wrote in message
news:bA********************@news2.e.nsc.no...
If i type NewRecord in some code, VB change to newrecord with lower-case
letter. If I open a new database on the same computer the NewRecord keyword act normally. Ha anybody experienced something like this??
TIA

Sigurd

Possibly Microsoft do NOT save the actual text 'NewRecord' but change it
instead to a token. This is done in things, such as compilers, to make it
easier (for the program) to understand what is what.

For example: in BASIC you might type the following code: Let A=2:Let
B=3:Let C=A+B:Print A,B,C

The compiler [or interpreter!] could 'translate' it into something like:

@ [memory location] = 2: @ [memory location+1] = 3: @ [memory location+2] =
[memory location] + [memory location+1]: [call print routine ([memory
location], [memory location+1], [memory location+2])]

Where:
@ is the token for LET (or Store)
[memory location] is an area of RAM
[call print routine (data)] is the address of a routine to send (data) to
the printer

I realise that this is a very simplistic model - pseudo machine code would
have been better, if you knew what the code was meant to do! - but should go
to show the benefits of changing a keyword to a token.

This is what the translator does -> compiling the code. When you decompile
the code -> English, you could get a different keyword back!

e.g. in my example, LET = @ on compilation but @ = Let on decompilation, if
you see what I mean. Which is why NewRecord could become token #, whereas
token # prints as newrecord. You can see this process 'happening' when you
enter code into the VBA Editor. As soon as you complete a line VBA parses
it, 'tokenises' it, then displays it in a standard format, i.e. with extra
spaces, different colours, etc.

HTH

Nick
Nov 12 '05 #5

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

Similar topics

2
1795
by: Arthur | last post by:
I've come across some strange xml, that I need to deal with, it looks like this:- <root> <foo attr="1">Some random strange text. <bar attr="2">blar</bar> <bar attr="3">blar blar</bar> <bar...
2
1949
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
2
8909
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
7
1652
by: M O J O | last post by:
Hi, I'm developing a asp.net application and ran into a strange css problem. I want all my links to have a dashed underline and when they are hovered, it must change to a solid line. Sounds...
25
3696
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
11
2568
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
20
1648
by: SpreadTooThin | last post by:
I have a list and I need to do a custom sort on it... for example: a = #Although not necessarily in order def cmp(i,j): #to be defined in this thread. a.sort(cmp) print a
14
3284
by: blumen | last post by:
Hi all, I'm a newbie in VB.Net Programming.. Hope that some of you can help me to solve this.. I'm working out to read,parse and save textfile into SQL Server. The textfile contains thousands...
9
1676
by: RICHARD BROMBERG | last post by:
I am using Access 2000 and I would like to make a data entry form (frmDataEntry) I want to append a newrecord to a table (tblPeople) and populate the new record from two Textboxes (txtName and...
0
7231
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
7132
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
7336
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,...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.