« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next

Re: Access Question for Zimbler

By: Zimbler0 in 6TH POPE | Recommend this post (0)
Mon, 23 May 22 4:02 AM | 16 view(s)
Boardmark this board | 6th Edition Pope Board
Msg. 32182 of 60008
(This msg. is a reply to 32177 by Decomposed)

Jump:
Jump to board:
Jump to msg. #

Decomposed > If I modify the prior procedure and function slightly to respond to the AfterUpdate event instead of the LostFocus event, I get a different error that suggests to me that Access can't see the Title of the form.


I have a feeling that what you need most, is to take the value out of the text box and then access it via VBA.

On the design view of the form, try right clicking on the 'Title' field. Click 'Properties'. You should get a Text Box with a title informing you it is for a 'Text Box:' and the name of that text box. The 'Other' tab should confirm the name.

In the database I'm looking at, I was calculating a tangent line. And I wanted to enter the x-coordinate of a point and a 'distance'. The x coordinate field was called 'xin'.

In the code module, I declared a variable named ex1 as a Double. To get my x-coordinate into VBA where I could do math on it, I used :

ex1 = xin.value

I would try getting the name off your form by pulling it out of the field on the form, then run your 'find duplicate' code.

Zim.




Avatar

Mad Poet Strikes Again.


- - - - -
View Replies (1) »



» You can also:
- - - - -
The above is a reply to the following message:
Re: Access Question for Zimbler
By: Decomposed
in 6TH POPE
Mon, 23 May 22 2:24 AM
Msg. 32177 of 60008







If I modify the prior procedure and function slightly to respond to the AfterUpdate event instead of the LostFocus event, I get a different error that suggests to me that Access can't see the Title of the form. I don't know how to capture what was just entered.













« 6TH POPE Home | Email msg. | Reply to msg. | Post new | Board info. Previous | Home | Next