473,326 Members | 2,113 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,326 software developers and data experts.

Me Statment Help

Hi
I hope I can explain this all ok

I have on a form "frmCustomers" a command button on the [event procedure]
I have
Dim x
x = fHandleFile("mailto:" & Me!ContactEMail, WIN_NORMAL)

The record source on the form comes from a table called Customers
Which works fine

BUT what I want to do is make another form where the record source comes from a table
callled tblEmail

So if I make a command button with the [event procedure]

Dim x
x = fHandleFile("mailto:" & Me!ContactEMail, WIN_NORMAL)
IT will go and look in the table "Customers" for some reason

What I want is

go and look in the "tblEmail table and get the info from the "ContactEMail" field
How do I alter this please
As always, any and all help is greatly appreciated.

Thank you in advance.

John
Nov 13 '05 #1
1 1127
"Me!" refers to the currently active object (form or report). You can't
directly reference a table the way you want. You'll either need to us one of
the domain aggregate functions such as DLOOKUP, or some code that does DAO
or ADO code to read the information. Hint: DLOOKUP is far easier. Take a
look at it in Help.

Larry Linson
Microsoft Access MVP

<ho**@hope.com> wrote in message
news:4f********************************@4ax.com...
Hi
I hope I can explain this all ok

I have on a form "frmCustomers" a command button on the [event procedure]
I have
Dim x
x = fHandleFile("mailto:" & Me!ContactEMail, WIN_NORMAL)

The record source on the form comes from a table called Customers
Which works fine

BUT what I want to do is make another form where the record source comes from a table callled tblEmail

So if I make a command button with the [event procedure]

Dim x
x = fHandleFile("mailto:" & Me!ContactEMail, WIN_NORMAL)
IT will go and look in the table "Customers" for some reason

What I want is

go and look in the "tblEmail table and get the info from the "ContactEMail" field

How do I alter this please
As always, any and all help is greatly appreciated.

Thank you in advance.

John

Nov 13 '05 #2

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

Similar topics

1
by: e_AK_05 | last post by:
I have a question and I can't figure out how to do it. I have a select statment : SELECT table1.* AS table1.*, table2.* AS table2.* FROM table1, table2 WHERE 1 this does not work...for me at...
9
by: Appel | last post by:
Hallo i have a problem to add to string with a SQL statement. My Table : Tablename NAMES: | Name1 | Name2 | Name3 | John Meyer I search for a SQL statment that update Name3.
8
by: 73blazer | last post by:
Hello, I'm looking for a way to make some of my insert templates more readable by placing comments in between the values. I cannot seem to find a way to do this with DB2, is there a way? I'm...
1
by: Me, Myself, and I | last post by:
First off, i apologize if my terminology is off... I am currently in a project that is basically a front-end to a database. In coding this, I am taking into account that it has the *potential*...
1
by: Anton Nikiforov | last post by:
Dear All, could you please help me with writing select statment for the following: I have two tables dictionary_text label| Text -----+------------------------ 23 | General 24 | Internet...
2
by: Denis Correard | last post by:
I have an application that create an insert statment on the fly (it would be to complex to create stored procedures for all senarios) like: insert into Table (field1, field2,field3 ,field4 ) VALUES...
5
by: vsteshenko | last post by:
Hello, This is my second post to the any usernet group and the first one was posted to the wrong one. I am currently working on creating an order form for sales associates at my work to be used...
1
by: zeebiggie | last post by:
Good morning I have a form with the controls in the insert statment below. table1 has an Auto increment primary key hence is omitted in the insert statment and form. Am getting the error It didnt...
3
by: miss time | last post by:
hi can any one help me pleaseto understand about if statment because Idid not really understood this topic from teacher and i will have final exam after few day thank you
1
by: shivendravikramsingh | last post by:
hello friends, actually i have a problem in using conditional statement in ajax function i m tring to describe my problem properly,what i want when i select a value form a combo its vlue is passed...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.