Refreshing Unbound OLE Objects SorceDoc

Feb 5, 2006

hI

I am trying to refresh an UnboundOLE objects Source Doc property through code. Basically, I have a dropdown on my form that contains a list of images (c:image.bmp, c:image2.bmp, etc..). I have added an unboundOLE object to my form that is linked to an image file with a Document Source property set to C:image1.bmp. I am trying to have the image (OLEUnbound Object)update when a user selects a different image file from teh drop down. I have put some code on the update and change events of the drop-down combo box but it doesn't seem to do anything.

Dim StrSourceDoc As String

StrSourceDoc = me.combo1.value

Me.OLEUnbound32.SourceDoc = StrSourceDoc
Me.OLEUnbound32.Requery

This does not seem o do anything
aNY iDEAS ?

View Replies


ADVERTISEMENT

Unbound Forms - Refreshing!!

Aug 2, 2005

Hi all, not been here for a year or two, hence i have forgotton a lot of Access stuff.

I have an unbound Data Entry form which when populated, adds the record to the table. Simple enough.

I have some code on the form which basically stops the user entering a new record without having a First Name and a Last Name. This code works well.

I also have some code which confirms that the user wishes to add the record to the table. If Yes, the record is added to the table but when entering data for the next record, the first code doesn't kick in about having a First Name and last name, however the Confirm Add record code kicks in.

How can I solve this, I have tried the me.refresh command in various places but as yet to no avail. Hopefully someone will point me in the right direction.

I have added the DB in both A2k and Access 2003 Versions

View 1 Replies View Related

Forms :: Refreshing Unbound Text Box

Nov 17, 2013

1. I have a table called table_1

2. table_1 contains field_A, field_B, and field_C

3. I have form called frm_1

4. frm_1 contains text boxes to update field_A, field_B, and field_C from table_1

5. frm_1 also contains an unbound text box which calculates: field_A+field_B+field_C

How can I get the unbound text box to refresh automatically after any field is updated (A, B, or C)?

View 3 Replies View Related

Refreshing From Pop Up

Jun 17, 2005

Hello all I hope that you can help

I got a database that has lots of subform which are all locked, I got a button that open the same subform in a pop up form with a macro that insert a new record. But when I close the subform after puting the information in the new record does not update on the main form untill you go away from the current record and come back again

Any Ideas

Postieman

View 1 Replies View Related

How To Make Unbound Field Auto-populate Conditionally From Another Unbound Field

Jan 30, 2015

To make it simple, I have a list of contact names and their email. I want to have a form with no control source and have 2 simple drop down boxes for their Name and their Email. What I would like to happen is the user choose a name from the drop down in field 1 and then the field below auto-populate their email in field 2. I understand I can use conditional IF/THEN and list out each email, but the contact list is ever changing, so I want to first drop down to link to the TblContacts, have the user pick the name from the list and then have the 2nd field autopopulate from that same TblContacts with their email respective to the Name entered in field 1. My form has two field [Traveler] and [Email]...The tblContacts two fields are [Name] and [Email]

Code:
DLookup("[Email]", "tblContact", "[Name] = [frmEmail]![Traveler]")

View 5 Replies View Related

Refreshing Subforms

Nov 22, 2005

Hi there.
I have a form with two sub forms on it. The form loads with a reference number that I pass to a function that in turn requeries the first sub form. The function call is in the on load event of the main form.
This part works fine.
The second sub form uses a similar requery function to the first one. The only difference is that the query for the second sub form is based on a reference number from the selected record in the first sub form.
If I put the function call for the second sub form in the on click of the first one all is well and the second sub form displays all records with a matching reference number.

The problem is that when the main form loads the first sub form will display the correct data but the second remains blank or displays the wrong data.
I know this is happening because the first sub form has not loaded fully and so the second sub form cannot get the reference number. I just can’t find a way to make the second sub form display the correct data when the main form loads.

I have tried calling the requery function for the second sub form from most of the events on the main form and many of the events on the first sub form but to no avail.
I also tried putting a meaningless sub form at the bottom of the main form and putting the requery function for the second sub form in the on load event but that was no good either. This surprised me as until that point I was assuming that access was loading the sub forms sequentially from top to bottom.

Can anyone tell me how I might determine the point at which the first sub form has been loaded so that I can get access to the reference numbers needed for the second sub form query. I would prefer not to use a timer for this as there is no way to determine the maximum time it will take access to load the rest of the data but at present it looks like the only option left.

Any comments would be much appreciated and sorry for the lengthy explanation.

View 6 Replies View Related

Refreshing ActiveX

Nov 24, 2005

I just added a ActiveX control to my program and I have a scroll mouse, and there when the user used the mouse to scroll through the records, the record changes but the ActiveX Control doesn't. My activeX Control is used for a digital signature. Anyone Have any ideas?

View 2 Replies View Related

Refreshing A Database

Jul 27, 2006

This is a lot more complicated than the title suggests. I was asked to reset the work order numbers used by the maintenance department. When they reach work order #9999 they want to start over. My best bet is to make a backup of the tables and create new ones that include the last 2-3 weeks of activity. If I do that I'll have two potential problems:

The next autonumber needs to be lower than the pre-existing records but not start at 1
Recombining data from the old table (for whatever reason) will create false relations

Does anyone know a possible solution to these problems or is there a better method to refresh the database?

View 8 Replies View Related

Self Refreshing Query

Apr 1, 2007

I have a 'Snapshot' report, which gives up-to-the-minute data on a business - sales year-to-date, month-todate, week-to-date and today. They run this many times a day, but ideally, they would like to have the information display on a monitor, and be updated automatically every few minutes.
Is there any way that a query can run by itself every few minutes, and gather the current information?

Robert

View 4 Replies View Related

Refreshing ODBC

Jul 4, 2007

Hi Guys

Quick question, in Access 2007, i created a table that pulls data out of our system via ODBC. No if the system gets updated, how do i refresh data in access? Please advise. Thanks in advance.

View 1 Replies View Related

Refreshing A Form

Feb 24, 2005

I have an orders form which contains an items subform.

To populate the items subform I have a button which opens a separate pop-up form.

Is there a piece of code which would allow me to click a button on that pop-up form which actually refreshes the other opened form (orders form)???

Anyone know if this is possible?

Thanks,

Paul.

View 2 Replies View Related

Refreshing OpenArgs?

May 16, 2005

Hi all,
I have a form (sub_Main) that opens and has an openargs value (Department) from my main form when user clicks on a cmd button. However, if I were to go back to my main form and click on another department the openargs value is not passed along. I have tried using Me.Refresh under LostFocus but it doesnt seem to work.

What is causing the openargs value from updating? Any help?

Thanks!

View 5 Replies View Related

Refreshing Fields

May 26, 2005

Hey All,

I have a field "NameView", irrelevant but it grabs a name from a seperate form from an ODBC connection.
The purpose for the field is simply to grab the data from another form.

On the same form As NameView theres another field "Name"
This Grabs the data from NameView and writes to the main table.

Everything works fine but "Name" will only update from "NameView" on a new record only and not on the current one.
I have a VBA Statement on an afterupdate which Me.Name = Me.Nameview

I've tried Me.Refresh and Me.Requery but no help.

Any thoughts?
Much appreciated
Thanks

View 4 Replies View Related

Refreshing Issue

Jul 15, 2005

Hi,

I know this is probably something really simple - but I'm relatively new to VBA.

I'm trying to run an update query from a form, then refresh the form having all the input boxes and checkboxes etc set back to normal.

The problem being that I have a list box to select a record to update from.

Now, if I just refresh the form this list box updates properly - but none of the other controls (text boxes and check boxes) reset to their defaults.

If I try to reset them manually in the code then a) they don't reset and b) the list box no longer updates (depending on the location of the reset code).

Though the code I'm using to reset things works when the query is not executed.

The code I'm using is currently:

Private Sub Save_Record_Click()
On Error GoTo Err_Save_Record_Click

Dim stDocName As String
DoCmd.RunCommand acCmdSaveRecord
stDocName = "Return to training"
'DoCmd.OpenQuery stDocName, acNormal, acEdit
Me.Refresh
Current.Value = False
Exit_Save_Record_Click:
Exit Sub

Err_Save_Record_Click:
MsgBox Err.Description
Resume Exit_Save_Record_Click

End Sub

I should add that in the above version of the code the list box does update but the check box still does not.

I'd really appreciate any help you can give me.

Thanks!

View 2 Replies View Related

Refreshing Form - Please Help

Dec 8, 2005

Hi

I double click a combo box which takes me to a new form. e.g. a purchase order form does not have an employee so they need to be added. When the employee form is closed i would like to refresh to combo box so the new employee appears in the combo box.

Please help

Thank you

View 3 Replies View Related

Subform Not Refreshing

Jan 27, 2006

I have no VB skills at all have to do everything with macros etc. So please keep any replies simple. I have a database for students, courses and tutors - all worked fine until the customer wanted each student to do 2 courses at a time. The whole database is designed for statistical returns ie females with child care responsibilities living in a rural area etc., and the Course Id has to be the same on each course table. I split the course table into 2 tables with the same data, made a course entry form which appends new courses to both tables. My problem is that when I select a course ie no 234 for course 1 and 345 for course 2 I cannot get the subform to show the data unless I go to the next/previous record and back again; when I do this the main form opens at record 1. Is there a macro or piece of code I can use to automatically refresh OR a macro that will go to next record and then reopen the mainform at the place where I started?

View 1 Replies View Related

Continous Refreshing

Feb 26, 2006

Hi!

I'd like to ask for your help in the following issue:

I wanted to refresh the filtering of my combo-list on a subform according to the change of a field on the main form.

With this

Private Sub supplierID_AfterUpdate()
Forms![invoices]![details1 Segédűrlap]![KombináltLista4].Requery
End Sub

it succeeded. But when I turn a page on the main form (to see records registrated in the past), the combo-list on the subform doesn't change (because Access doesn't get any after-update info - I guess).

But I'd like to use a solution that always watches the actual value of the main form displayed on the screen and so it changes the filtered list of the sub-form - combo-list according to it.

Please help if you have a good idea/solution to it.
(take care I'm beginner at Visual Basic)

Thanks

xxyyy

View 1 Replies View Related

Refreshing Pictures

Mar 24, 2006

Hello all,

I have search the forum for two days and can not find anything about this promble so any help would be good.

I am using a linked picture i have then browser setup and works ok but my issue is that i can not get the picture to refresh its self, with out going into design view and then back to my form, i would hope that there is a solution to this.

Any links would be good or general help would be great as i am starting to loss sleep over this now.

Thanks in advance

Alastair

View 1 Replies View Related

Refreshing Forms

May 23, 2006

Is there a way where you can send the data on a form to a detination table without closing the form?????

It's probably the easiest solution but it's 4pm and nearly home time so a memory blank is upon me!

View 2 Replies View Related

Refreshing Forms

Aug 23, 2006

I have modal pop-up form1 showing list of items. There is a button that opens a new modal pop-up form2 (not subform) to add items to form1, form1 is still open behind form2. This all works fine, but when you click save button on form2 it saves new data to database and closes taking you back to form1
but does not refresh new data to form1 unless you (shift F9) or close form1 and reopen or use refresh button on form1.
I would like to have form1 refresh data as soon as form2 is closed from the save button. I can do a timer event on form1, but this flashes the screen...which is annoying. I have tried various methods to make this work but just can't seem to get it to work. If form2 was a subform of form1 then refreshing mainform would not be an issue. Can anyone shed some light on this?

View 3 Replies View Related

Refreshing A Form

Sep 19, 2006

Hi all,
How are you?
I have a small problem...
I have a form with 3 textboxes and 1 button. When filling these textboxes, and clicking the button, a record will be added to a table. I want when I click the button, the record to be added to the table with removing the the old record from the 3 textboxes for the new record to be added.

How can I do that??

View 3 Replies View Related

Refreshing A Form

Mar 2, 2006

I have some dLookUp text boxes on a form. They don't refresh though till after I change the record I am on. There are only two fields on the form that actually change the dLookUp boxes and they are both combo boxes.

Is there some refresh code I can put in the combo boxes so that the form refreshes after someone changes data in the two combo boxes?

View 3 Replies View Related

Form Keeps Loading/refreshing

Apr 11, 2006

Hi all,

I encountered some weird symptons with my Access forms. I am using the form to display images(done by setting the OnCurrent and After Update property).

When my PC is just powered on, and i try to load say form "ENGLISH". Form "ENGLISH" will appear, but the focus will switch in between form ENGLISH and the MS ACCESS program window. This action will onli settle down after abt 10 secs.

When the ENGLISH form is loaded, i will attempt to switch from one record to another, but the same thing occurs again. IT will load/refresh for abt 10seconds, with the focus toggling btwn ENGLISH FORM n MS Access.. IN addition, it opens a second copy of FORM "ENGLISH" in the background as can be seen on my taskbar. When i close my 1st form ENGLISH and i attempt to close the 2nd FORM tat is appearing on the taskbar, there will be an error msg, English : MSACCESS.EXE-Application Error, Instruction at....(refer to the attached jpeg file for detailed error location)

Y is it tat this weird behaviour onli applies to the forms tat are used to display images but not those normal forms tat contains of purely text?

The entire behaviour will be eliminated after i close MS access, and reload the DB abt twice.....

View 3 Replies View Related

Refreshing Subform Data

Jul 31, 2005

G'day,

Currently I have a button on my form that opens a second for to Add a New Temp Worker. This all works fine but when I close the form and go back to the entry form the subform hasn't been refreshed and so the new temp isn't in the list. I can't close the form that contains the subform as it will stuff up the data entry.

Can you please help?

Bizzy

View 14 Replies View Related

Refreshing The AutoNumber Field.

Jul 9, 2006

I had a table with an ID field defined as AutoNumber. It contained a large number of records. When I deleted those records, and added a new record, it was alloted an ID which was an increment of the last ID when the Table was full previously.

I want that the AutoNumber ID be ReNumbered from start if any record is deleted.

View 4 Replies View Related

Automatically Refreshing My Listbox

Jun 23, 2005

My main form that displays the records also has on it a listbox for easier navigation to records. What i would like is when i delete the records, they automatically become removed from the listbox.

Currently what happens is that i have to close the form and reopen it in order for the deleted records to be removed.

I would like a line or two of codes that i can add to my delete record buttont that updates my quicksearch listbox.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved