Save record subform via macro

Access 2010 accdb
Have a single main form (M) with a continuous sub form (Msub)
The main form has a button that opens a report (R1) which has data dependent upon the values in the continuous sub form Msub.
When the user adds/edits data in Msub - then presses to open R1 it does not have the updated values from Msub.
In the open report macro, preceding the open R1 command, I have:
GoToControl: Msub
RunMenuCommand: SaveRecord
but no joy....all works fine if one closes R1 (not updated) and then presses the button to open R1 a second time it will have the updated info....

I can confirm that your suggestion - to requery  - did work...thank you. 
However I should point out to other readers that implementing was a little trickier than expected for those of us that are not macro jockeys....
As noted in the first post the button in question is on the Main form and so that is the starting point of reference and in its macro I had already:
GoToControl: subForm Name
RunMenuItem: save record
.....and this did not seem to work
.....so I added a new command below these 2
Requery: subForm Name
and this barfed - telling me there was no such control.....well of course in hindsight this is because the command was put after the GoToControl: subForm meaning that it was looking for a control name within the subForm itself and could not find its own
name...
once I moved that command line to be up above the GoToControl: subform - - it worked fine - - and then since I no longer needed the GoTo & RunMenu - those eventually got deleted....

Similar Messages

  • Save binary object via API 2

    How do I save a file via the API 2?
    Any exsample will help me alot!
    I'm trying to save a object to the table Binary_Objects, but I get the error: "com.sap.mdm.internal.protocol.manual.ServerException: Server error (0xffaab000)"

    I assume you are trying to create a BinaryBlobRecord in the Binary_Object Table.
    Here is some code that works:
    BinaryBlobRecord record = RecordFactory.createEmptyBinaryObjectRecord(tableId);
    record.setBinary(new BinaryValue(bytes));
    record.setDataSize(new IntegerValue(size));
    record.setHasOriginal(new BooleanValue(true));
    record.setDataGroupId(node.getId()); // get the node using RetrieveGroupTreeCommand command.
    record.setSource(new LookupValue(new RecordId(1))); // see below
    record.setCode(name); // The code has to be unique, so you can add a random number to the name.
    record.setName(new StringValue(name))
    CreateRecordCommand createRecordCommand = new CreateRecordCommand(connection);
    createRecordCommand.setSession(authenticatedUserSession);
    createRecordCommand.setRecord(record);
    createRecordCommand.execute();
    If you don't set the source properly , you will get that error. For setSource method, you need to set a Location ID. With API 5.5 SP5, most likely there is no way to create a new location ID and we have to use one of the existing Location IDs. Just to make the code work, I used "new LookupValue(new RecordId(1)) ", which requires having at least one file uploaded to the table via MDM Data manager and use the first part of its location ID.
    For setDataGroupID, first create the group node in the MDM Data Manager and find the node in the GroupTree with API. To get the GroupTree, use RetrieveGroupTreeCommand.

  • In an HDV sequence can I "scrub" the timeline and record it via FW to tape?

    In an HDV sequence can I "scrub" the timeline and record it via FW to tape?
    In standard definition I used to be able to do this via Firewire to my mini-dv deck. But now I am working with the Canon Vixia30, an HDV camera. I'd like to be able to scrub the time line back and forth at varying speeds and record this scrubbing live (rather than doing it with Motion software.) Is there anyway to "record" this action, either onto tape or digitally, while maintaining the HD resolution?
    If possible I'd like to figure out how to do this without buying extra equipment. I understand I could get a Matrox MO2 Mini box ($450.) to output the live HD signal, but then how to record the HD signal from the Matrox box? (my camera only has HDMI out, not in.)
    Thank you for your input.

    And if you capture your footage as ProRes (as I see discussed in another thread), you cannot output to HDV via firewire. It would be pointless. To go from a lossy format to ProRes to edit...then convert back to HDV. Typically people who shoot HDv never master back to HDV, as it isn't a mastering format.
    And yes, the MAX is totally worth it. Compression times faster than RT (meaning less time to compress than the timeline is long...I did 90 min timeline in 75 min yesterday). Worth it? Depends how much your time is worth. TO me, I'd like to have the compression done in 75 minutes opposed to 3-4 hours.
    Shane

  • Save Records by using F10 and after pressing F10 it display another form?

    hello all
    is it possible to save records by pressing f10 key and after commit it display another form? if yes then help me
    sarah

    Hi,
    In the KEY-COMMIT trigger of the form write the code,
         COMMIT;
         NEW_FORM('<form_name>'); -- Or any other form opening built-ins like OPEN_FORM, CALL_FORM etc.Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Count of records input via MM01

    How can we do count of records input via MM01?
    Thanks,
    AP

    Hi,
    it depends of using MM01.
    MARA, MARC, MARD, MVKE etc.
    regards, Dieter

  • When moving from one master block to detail block  it must save record.

    when moving from master block to detail block it must save record or it will give message like 'save changes '....
    when i write it ,but this message will be coming.
    But if i save record message will appear two times.
    plz Help me.
    Thanks & Regards
    Venkata.
    Message was edited by:
    venkata

    Hi,
    you could ask for Form_Success when moving to detail_block (in wehn-new-block-instance i.e.) and if not form_success you could show an alert to ask for commit changes...
    Jose.

  • Maintain penalty costs in product master data via macro

    Hi all,
    I am trying to use the function MATLOC_SET to maintain the penalty cost (field Non. Del. Penalty) on SNP1 tab, but it didn't work.
    Is it possible to use this function to update this field or I need to use an other function to do this?
    I tried :
    1) MATLOC_SET( 'NDPEN' ; 123 ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    2) MATLOC_SET( 'NDPEN' ; '123' ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    3) MATLOC_SET( 'NDPEN1LOC' ; 123 ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    4) MATLOC_SET( 'NDPEN1LOC' ; '123' ; ACT_PRODUCT ; ACT_LOCATION ; ACT_VERSION )
    Thanks in advance,
    Regards,
    Douglas Marques

    Thanks all for replies!
    Kishore Reddy,
    Yes, it's possible to maintain product master data via macro by functions. In my case, I'm using MATLOC_SET and it's work fine... except for the penalty costs fields.
    Saradha,
    I can't use the MASSD to do this because the costs are calculated in the macro based on sku/location forecast. But call a custom program in the macro is a good idea. I only have a doubt... Is it possible to transfer the calculated values in the macro to the custom program? If it's possible, how can I do to call the custom program transferring these values?
    Julien,
    The function MATLOC_SET works fine for other fields, only doesn't work to penalty costs fields...  
    I saw that the structures are different, but the help that provides by SAP not mention any restriction. So, I think there is some other specific function to update the costs and i tried the MATLOC_EXTRA_SET, but it updates only extra fields...  
    May be having another function to do this...
    Thanks and Regards
    Doug

  • How to save record date/time from camcorder as subtitle or text overlay

    DV camcorders record information on the tape with the date and time when each frame was recorded. How can I save this information so that it ends up as a subtitle on the DVD or as an overlay on the video? I don't want to lose this information. I would think many people want to remember when they took pictures of their kids to they can figure out how old they were. I haven't found a way to do it. Would never have believed it would be so hard.
    iMovie uses this information to split up clips. You can also view the date and time when getting information about a clip, but it ends up being lost when creating a movie or DVD.
    I've suggested this as an enhancement to iLife, but I doubt they will implement it.

    I've suggested this as an enhancement to iLife, but I doubt they will implement it.
    I asked two 'makers' of plug-ins, Bruce from geethree.com and Christian from imovieplugins.com: both confirmed, the info IS inside the dv-streams you import from your camera (select clip, hit Apple-I ...), but it is actually impossible to 'program' with this info.. (they spoke of a missing API.. me no programmer, ??? )
    so, only way: read out info manually and type timestamp in some nice 'title' effect...
    ok, there's a 'hard way': set camcorder to display timestamp while playback and re-record to a second camcorder via analogue-connection... no, I prefer titles ;-))

  • Recording Audio via Input Problem

    Hi - I'm a sports broadcaster who records games through Audition CS5.5. I record games through a separate soundboard and then record the audio into Audition via the mic input on my laptop.
    Recently, I've been having this problem: at some point in my recording, the recording stops on it's own. It doesn't actually freeze and stop (as it usually would when you press stop), but rather the running time of the recording stops moving forward. Then, when I press the stop button, Adobe has been crashing. Thus, I lose the entire recording without saving.
    Anyone have a clue to what the problem/solution could be? I had a similar problem a few years ago and that ended up being a disk space issue. Is it something in that realm? Thanks

    Yeah, it could easily be down to disk space, either the overall disk capacity or the the specified size of your Temp folder.  However, it's impossible to say this for sure without some more info about how much capacity you have left, details of your temp folder etc.
    Do you record in Multitrack view or Waveform?  I'd suggest Multitrack (even if you only use 1 track) because that goes straight to disk rather than to a Temp file you have to save later and can also cope with larger files than Waveform, at least in some operating system.

  • Producing a narrated slideshow, save and send via email attachment?

    I'm wondering if one can produce a slides show in keynote, add narrative to it, save it in a iMovie or some other format, and be able to send it as a stand alone presentation to someone via email attachment or clickthrough on a website.
    Is it possible to do with within the Apple family of products? If so, how do you add the narrative and in what format should it be saved?
    I need to be able to give clients a sample of a live presentation. Not the talking head, but the slide content with voice over.
    Any suggestions or experience would be greatly appreciated.

    Garageband, iMovie, iPhoto and QuickTime Pro can make your file and save (export) to a QuickTime file format. Keynote could "make" the video portion (export to QuickTime formats). QuickTime Pro can "record" audio (supported device required). A "mix and match" use of these apps could help reduce the file size.
    Things to consider:
    Email has file size limits on attachments and even a very short file would probably exceed them. You could post your file on any "server" and just send a link to the file in your email.

  • HOW TO SAVE RECORDS MORE THAN ONE AT A TIME

    i have two blocks lov_name and lov_values
    lov_name contains
    lov_id(pk)sequence generated
    lov_name
    lov_values contains
    lov_id(fk)
    lov_values_id(pk) sequence generated
    lov_values
    i have the sequence names as lov_id & lov_id_values
    i have written the code for save button
    declare
    v_lov_id number;
    v_lov_val_id number;
    begin
    select lov_id.nextval into v_lov_id from lov_name;
    select lov_id_values.nextval into v_lov_val_id from dual;
    insert into lov_values values(v_lov_id,v_lov_val_id,:lov_values.lov_values);
    clear_record;
    commit;
    end;
    could you help me with the code to save more than one record at a time

    I would suspect this line
    select lov_id.nextval into v_lov_id from lov_name;
    i was getting lov_id value in to the feils but iwas not getting the value of lov_id_values
    how to run the sequence when inserting multiple records
    thanks
    prasad

  • Creating pdf file from excel worksheet and save file in a macro created folder.

    Hi I have 3 worksheets and I want to conditionally convert them into a pdf file and than save said file into a folder that the macro will create if not already existing and name it with content of cell A1. So my question is if it is possible to do that with
    the following program?
    Thanks.
    Sub PrintStuff()
    Dim vShts As Variant
    Dim strFileName As String
    vShts = Sheets(1).Range("A1")
    If Not IsNumeric(vShts) Then
    Exit Sub
    Else
    ' Change path and filename as desired
    strFileName = "C:\MyFolder\MySubfolder\MyFile.pdf"
    If strFileName <> "False" Then
    Select Case vShts
    Case 1
    Sheets("Sheet1").Select
    Case 2
    Sheets("Sheet2").Select
    Case 3
    Sheets(Array("Sheet1", "Sheet2")).Select
    End Select
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
    Filename:=strFileName, _
    OpenAfterPublish:=False
    End If
    End If
    End Sub

    Option Explicit
    Sub PrintStuff()
    Dim Path As String, FileName As String
    Dim ThisSheet As Variant
    Dim MySheets As Variant
    Path = "C:\MyFolder\MySubfolder\"
    FileName = "MyFile.pdf"
    If Not FolderCreate("C:\MyFolder\MySubfolder") Then
    MsgBox "Can not create folder"
    Exit Sub
    End If
    Select Case Range("A1")
    Case 1
    Set MySheets = Sheets("Sheet1")
    Case 2
    Set MySheets = Sheets("Sheet2")
    Case 3
    Set MySheets = Sheets(Array("Sheet1", "Sheet2"))
    Case Else
    MsgBox "Uuups."
    Exit Sub
    End Select
    Set ThisSheet = ActiveSheet
    MySheets.Select
    ActiveSheet.ExportAsFixedFormat xlTypePDF, Path & FileName, OpenAfterPublish:=False
    ThisSheet.Select
    End Sub
    Private Function FolderCreate(ByVal Path As String) As Boolean
    'Creates a complete sub directory structure
    Dim Temp, i As Integer
    On Error GoTo ExitPoint
    If Dir(Path, vbDirectory) = "" Then
    If Right$(Path, 1) = "\" Then Path = Left$(Path, Len(Path) - 1)
    If Left$(Path, 2) = "\\" Then
    i = InStr(3, Path, "\")
    Temp = Split(Mid$(Path, i + 1), "\")
    Temp(0) = Left$(Path, i) & Temp(0)
    Else
    Temp = Split(Path, "\")
    End If
    Path = ""
    For i = 0 To UBound(Temp)
    Path = Path & Temp(i) & "\"
    If Dir(Path, vbDirectory) = "" Then MkDir Path
    Next
    End If
    FolderCreate = True
    ExitPoint:
    End Function

  • Best Practice to save record in a table with appropriate trigger

    Hi,
    At the same time, five users are inserting client information in a client table through Oracle form. Client table has the following fields:
    CLIENT ID
    CLIENT NAME
    CLIENT ADDRESS
    CLIENT ID is generating automatically by calling a procedure. In this procedure I am using MAX function to get maximum value of CLIENT ID. After that, I store newly generated CLIENT ID in a DATA BLOCK item say :MASTER.CLIENT ID.
    The problem is that all five users do get same MAX value(suppose 40) of CLIENT ID at the same time, and oracle form will surely throw an exception at the time of insertion the record in client table. CLIENT ID is PK and it is a member of MASTER DATA BLOCK.
    I hope all above will clearly illustrate the problem, further please guide, can PRE-INSERT trigger may handle this problem efficiently ? , if so, then how ? ...
    Thanks,

    Hello,
    Welcome to the forum!
    CLIENT ID is generating automatically by calling a procedure.So, in which trigger you are calling that procedure?
    After that, I store newly generated CLIENT ID in a DATA BLOCK item say :MASTER.CLIENT ID. I would guess that you are using the code generation procedure in the WHEN-CREATE-RECORD trigger block-level. Because this trigger normally intialize the value for new record insertion. If no then specify.
    further please guide, can PRE-INSERT trigger may handle this problem efficiently ? ,Yes, PRE-INSERT will work without any problem.
    if so, then how ? ... Because, PRE-INSERT will fetch the MAX number from the table at the time of save not at the time of creation. So, suppose five user will enter record at the same time but when they will save then PRE-INSERT will get the max sequence number. And it will never create problem. Because in five user's insertion sure there will be some time difference. So, max number can be get easily without any problem.
    -Ammad

  • Recording voice via tape to ipod

    i want to record from a tape player both voice and sound via my pc line in( Winxp pro sp2)and then load the result onto my ipod - how do i do it -i have itunes

    The new earphones with remote have a mic. They work only with the latest nanos, classics and touch's
    http://store.apple.com/us/product/MB770G/A

  • Attaching e-mails to the interaction record(Activity) via ERMS set up

    Hi Experts,
                     1. Activity (Interaction record) to be created  automatically on receiving an email.
                     2. Once the acitivity is created then it must be routed to employee responsible based on certain rules.
               For the above requirement we are trying to config ERMS.
    During the creation of an activity it should be possible attach ( link ) the e-mail or documents to the interaction record via ERMS set up. Do we need to do any configuration to attach the e-mails to the interaction record (Activity) . Please provide inputs on this requirement.
    Contributions will be highly appriciated. Thanks
    Regards,
    Lakshmana.P

    Hello Lakshmana.P,
    Typically you would not actually route an Interaction Record (IR). If some follow up action is required, it is a best practice to create a service ticket. The IR creation is more appropriate for situations in which ERMS can auto-respond with a solution to an easy question about e.g., shipping rates, return policies, retail locations, or whatever. There are default actions for routing service tickets, but not for interaction record.
    Best regards,
    John

Maybe you are looking for

  • Powering Apple Wireless Keyboard

    I know this is a keyboard issue, but there's no keyboard Discussion area, and I'm using it with a MacBook Pro... thanks in advance for any help. Using a new Apple Wireless Keyboard (the latest tiny aluminium one), it seems unclear how to use somethin

  • Shuffle songs position doesn't work

    My iPod doesn't work on the shuffle position, just play songs in order. Anyone could help me???

  • Dynamic Directive in Java App

    I created a JSP using the dynamic directives based on what is in the Application Development guide of mod_osso. I have the app deployed on a standalone oc4j 9.0.3. It doesn't seem to pick up the getRemoteUser...do I need to deploy in the OHS, or am I

  • JavaHelp supported platform

    I've a question about JavaHelp supported platform. We use JavaHelp version 2.0.0 and 2.0.4 8 (Java SE version: 1.5.0_8 and 1.5.0_12) I need to know if: - is Solaris 10 x86 platform supported from JavaHelp and (if so) - are both 32, 64 bit architectur

  • Percussive Soundfonts

    Anyone know where there are any good xylophone or marimba soundfonts? I found 1 or 2, but I'm having trouble unzipping the sfark files.