Solved

Access refer to Primary Index

Posted on 2011-03-17
3
271 Views
Last Modified: 2012-05-11
I have a generic Audit utility.
I populate a text field with the formname and other data.

I was wondering if there was any way to refer to actual value of the "primary index" without knowing what the name of the index was.

I would like to be able to refer to the actual "primary index" value in my audit string.  (A sort of form.primaryindex function??)
(As I write this question I am becoming consious that a form could have multiple tables and therefore multiple "primary indexes".   Therefore my query may be impossible! ?)




0
Comment
Question by:Patrick O'Dea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
AkAlan earned 500 total points
ID: 35161226
Not sure what you are really needing here. If you include the primary key in the query, you can then use it as the control source for a text box.
0
 

Author Comment

by:Patrick O'Dea
ID: 35161250
Thanks AkAlan,

I have not expressed my query well.

In all honesty I have had a couple of glasses of wine ... and this query is a complex one!

I will award the points and close the query (for the moment!)
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 35161253
Thanks
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question