Skip to main content

Search

Search

Write file action unable to update connected database

Comments

4 comments

  • Avatar
    Peter Thane

    I have literally just been working on a project that requires something similar!

    I didn't use a button but add the Write File command at Form Close. 

    To get this to work I made the new input fields Named Data Sources, NewCode and NewNumber in my case, so that I could then add these via the Variables>Events option. 

    I changed the Source to Embedded Template and in the Value added a Carriage Return (to make the data appear on a new line) and then add the two variables with a comma between them using the Insert Variable > More Variables and then double clicking on the Variable in the Events table.

     

     

     

    At print time this is what I now get: 

     

    Data Entry form with new record.

    0
  • Avatar
    Lyndon Whyatt

    Thanks, this works for me too now. However column 2 for me is a text field that can also contain commas. 

    Normally I'd use double quotes to keep the commas in one column.

    How can you do this in Bartender?

    0
  • Avatar
    Peter Thane

    I have only played a little bit with this action so dont know everything you can do but I know this one!

    You just use the speech marks/double quotes in the string around the variable and so you could have something like this

    %Variable1%,"%Variable2%" 

    as you command string

    0
  • Avatar
    Lyndon Whyatt

    Perfect. That did it thanks.

    0

Please sign in to leave a comment.