Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. asjohnson

    How do I save a record using VBA?

    Thanks, but I don't want to go through the Recordset.Edit routine, as there are alot of fields I would have to scroll through to find what changed. I also tried the DoCmd.RunCommand acCmdSaveRecord, but this command produces an error as well. Any more ideas out there?
  2. asjohnson

    How do I save a record using VBA?

    Does anyone know how I can save a record on the click of a button? The DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 command produces an error and does not save. I'm looking for alternatives. Please help.
  3. asjohnson

    go to the same record on the other form?!

    Matt, I'm not sure what event you want to place this code into (maybe Form_Current), but try to set the filter on the other forms based on the ID of your main form (assuming the two forms are based on the same ID). Something like: Forms![OtherForm].Form.Filter = "ID = " &...
  4. asjohnson

    Goto a specific record on a form

    I have a form with a list box, that when a specific record is selected in the list box, I'd like the main form to goto the selected record. The bound column in the list box is the ID field that is in the main form. Something in the ListBox_Click event that says goto Record where Mainform.ID =...
  5. asjohnson

    Relate one subform to another

    Hi Gord, thanks for the interest. I guess the real question is what is the best link. The key in this example is that the link between the two subforms is based on the ContactID (when a record on the top form is selected, the bottom form will requery/filter based on the ContactID value)...
  6. asjohnson

    Relate one subform to another

    I have one form that contains two somewhat related subforms (not directly related with Master and Child links). The top subform displays names of contacts in a continuous form format. The bottom subform contains ONE name and address for the selected record in the top subform. What I want to...
  7. asjohnson

    Automatically Close then Reopen DB

    You're definitely not ignorant, I am. I did more research on this. MS suggests that you create a separate utility to that compacts and synchronizes databases. This give you more control. By doing this in VB, instead of VBA, you can compact the DB before synchronization, thus no need of...
  8. asjohnson

    Automatically Close then Reopen DB

    Actually, I have a replicated DB. I read on Microsoft's site that described when replicating using VBA, that you should close then re-open the DB to see design changes. Am I mistaken?
  9. asjohnson

    Automatically Close then Reopen DB

    Does anyone know how VBA can automatically close then re-open the same DB?
  10. asjohnson

    Help with Controls.ControlType

    I must be missing something because when I type ctl.cont... the shortcut menu appears but the ControlType property is not listed. Is there another reference? I am using 97, not 2000, too.
  11. asjohnson

    Help with Controls.ControlType

    Still did not work. I have the reference at the top. Part of my code: dim ctl as Control for each ctl in Me.Controls ctl.ControlType ctl.OldValue ... next What is strange is when I compile I receive no errors. But I receive errors in the Error Handler.
  12. asjohnson

    Help with Controls.ControlType

    I added a procedure that loops through all controls on a form to see if the Value changed (from the OldValue property). I was using a Control variable(dim ctl as Control) to represent each control on the form. When I tried to use the Control Type property, I receive an error. The help in...
  13. asjohnson

    No Custom Toolbars with Replicated DB

    I created a database that is replicated. I'm working in the Design Master and I'm trying to create a new Toolbar. When I right click on the toolbar area or goto View, Toolbars, nothing appears. Can I create Custom Toolbars with a replicated DB???
  14. asjohnson

    Save a record on Form before leaving record

    Thanks ghubbell, that was quick and easy. Do you know how to program the same task using DAO?
  15. asjohnson

    Save a record on Form before leaving record

    Hi all, this is probably simple, but what I want to do is save the current record on a form before the user leaves the current record. Somthing like a Save button. I realize that the record is saved once a new record is opened, but I want to save prior to that. Any ideas???

Part and Inventory Search

Back
Top