QuickBase Community Home Page

Add Child Record and Save Record ID# to Parent Record

I have the following in a formula url field on my parent table"

var timeofday StartTime = ToTimeOfDay(Now()); 
URLRoot() & "db/" & [_DBID_SHRINKAGE] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Weekly ID#]) & "&_fid_7=" & $StartTime & " &z=" & Rurl()

This creates a record in the child table and stamps the time into a field on the child.  This works fine, but there's an additional step that i can't figure out, as follows:

When I hit save on the child table I want it to return to the parent and save the Record ID# of the child record into a field on the parent table.  Next time I create another child from the same parent I want it to overwrite the Record ID# from the new child into the same field, so that I always have the record ID# of the last child added store in the parent table.

How can I add something to my formula above to achieve this?

    Cancel
    Contribute an answer

    People come to QuickBase Community for help and answers—we want to let them know that we're here to listen and share our knowledge. We do that with the style and format of our responses. Here are five guidelines:

    1. Keep it conversational. When answering questions, write like you speak. Imagine you're explaining something to a trusted friend, using simple, everyday language. Avoid jargon and technical terms when possible. When no other word will do, explain technical terms in plain English.
    2. Be clear and state the answer right up front. Ask yourself what specific information the person really needs and then provide it. Stick to the topic and avoid unnecessary details. Break information down into a numbered or bulleted list and highlight the most important details in bold.
    3. Be concise. Aim for no more than two short sentences in a paragraph, and try to keep paragraphs to two lines. A wall of text can look intimidating and many won't read it, so break it up. It's okay to link to other resources for more details, but avoid giving answers that contain little more than a link.
    4. Be a good listener. When people post very general questions, take a second to try to understand what they're really looking for. Then, provide a response that guides them to the best possible outcome.
    5. Be encouraging and positive. Look for ways to eliminate uncertainty by anticipating people's concerns. Make it apparent that we really like helping them achieve positive outcomes.
    Cancel

    Similar questions other people found helpful: