473,395 Members | 1,676 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,395 software developers and data experts.

help with the AddFromOutLook Macro

Okay quick question -
I have a form that shows user information
I have a cmdbutton called "cmdAddFromOutlook"
it has the following macro for 'On Click'
Expand|Select|Wrap|Line Numbers
  1. RunMacro       AddFromMacro
  2. GoToRecord    ,,GoTo,
  3.  
AddFromMacro:
Expand|Select|Wrap|Line Numbers
  1. OError                            Next,
  2. RunCommand                 AddFromOutlook 
  3. SetDisplayedCategories   Yes,acNavigationCategoryTabelsandVeiws   
  4.  
So this is what happen: you click the add from outlook button and it open the search from outllook and you look for a user and click add then enter and then it goes back to the access form but now instead of the form being blank (new record) it is now set to the first record (text boxes have 1st record info in them)
That is my problem

Now I also have a combobox that shows user names and runs the following
Expand|Select|Wrap|Line Numbers
  1. Private Sub Combo42_GotFocus()
  2. Combo42.Requery
  3. End Sub
  4.  
This refreshes the list and the new user is now in the list and you click on them and there information will populate allthe text boxes on the form.

What I wan tto know is there a way that after you select the user from the outlook search that their info will populate the textboxes instead of going to the first record?
Thanks
(hope this makes sense, hard to explain)
Mar 5 '09 #1
5 4838
maxamis4
295 Expert 100+
So you want to pull data from the Outlook Address book? If so why don't you just link out look to access and use the outlook data?

you can link directly. File -> Get External Data -> Link -> Outlook ->
Address book.
Mar 9 '09 #2
Missing the point. I am already linked by using the addfromoutlook macro that is built in to access. That is not the problem posted
Mar 9 '09 #3
maxamis4
295 Expert 100+
So what you are saying is that you want to search within Outlook and return the value you searched for correct?

Take a look at this link http://bytes.com/topic/access/answer...-records-form1. Its not your exact problem but its around a simlar line.

Unfortunately my Outlook in Access is expierence is limited.
Mar 9 '09 #4
uhh... thats my thread
Mar 10 '09 #5
DonRayner
489 Expert 256MB
Your new record should be the last one in the recordset. So when you go back to your form, requery it and then go to the last record.
Mar 10 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Alex Stevens | last post by:
Hi All, I was hoping that someone could put me in the right direction with a utility I'm trying to write for myself. I would like to have a search which would find a string anywhere in my...
6
by: Dos Lil | last post by:
I have a comobox in the main form which has a query attached to it to list the employee numbers.I have written this code to requry the control in the control's after update event Private Sub...
11
by: jlara | last post by:
Working on an embedded controller, I generally find it convenient to define the following de-referenced pointer: #define portb (*(unsigned char *)(0x03u)) This enable me to write to a port as...
14
by: Malcolm | last post by:
Hi, I have the following which fails with "disagreement in number of macro arguments" when compiling with Imagecraft ICCAVR. Has anyone got any ideas - its not vital but would make the code a...
4
by: Elaine | last post by:
Hi I have created a form which contains a subform. To cut a long story short, I have created a macro that moves the focus to the subform (GoToControl) and sets a value (SetValue) in the field...
6
by: Takeadoe | last post by:
Dear NG, Can someone assist me with writing the little code that is needed to run an update table query each time the database is opened? From what I've been able to glean from this group, the...
0
by: =?Utf-8?B?TGV0emRvXzF0?= | last post by:
I'd like to create a Macro that will sort some raw data, apprx 20k lines, remove some lines based upon a condition in a certain column. Then copy this data into a new spreadsheet and sort the ...
0
by: =?Utf-8?B?YWRhbQ==?= | last post by:
Dear Expert, I'm building an access database which has a contact information table. Most of those contacts will be taken from the Outlook Contacts Folder. Access 2007 has a command...
1
by: vanlanjl | last post by:
I created a Databse with an AddFromOutlook cmd button the utilized the AddFromOutlook Macro that is built into Access 2007. Does anyone have experiance with this? I have gone back and noticed alot...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.