LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save the current access database as a new file with a specified name

Solved!
Go to solution

what I am trying to do is after writing data to a public access file, save it as a new access file,

clear the public access file and write new data in it.

repeat the above process when requested by the operator.

 

which database function should I use to execute this "save as " action?

 

thank you...

0 Kudos
Message 1 of 7
(3,440 Views)

I'm not sure what DB tools you are using in LabVIEW however I was able to locate the following function that seems to accomplish what you asked about.

 

DB Tools Save Recordset To File VI: http://zone.ni.com/reference/en-XX/help/370016C-01/lvdatabase/db_tools_save_recordset_to_file/

 

As far as database applications go there are several examples included in LabVIEW some of which include SQL functions as well.

 

Regards,

Isaac S.

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(3,416 Views)

Thanks for your reply, I hope to save the file as .mdb file (access database file)

I simply could not find the module that could possibly do that.

0 Kudos
Message 3 of 7
(3,410 Views)
Solution
Accepted by topic author lksusier

Why not just use the normal file operation functions ?

There you can copy your Access file, it just a file. 

You can find the copy function in the palette : Programming -> File I/O -> Adv File Funcs -> Copy

0 Kudos
Message 4 of 7
(3,407 Views)

@lksusier wrote:

Thanks for your reply, I hope to save the file as .mdb file (access database file)

I simply could not find the module that could possibly do that.



Why are you creating a new access database for each new iteration???

This defeats the purpose of a database which is used generally used to store multiple sets of data.

 

 

0 Kudos
Message 5 of 7
(3,402 Views)

I figured this out yesterday. I was just stuck with the Database operations and completely forget the most basic functions. 😞

0 Kudos
Message 6 of 7
(3,392 Views)

Thanks for your reply.

That was a request from a databse programmer, I was told the file created will make it convenient for him to import data to another database.

anyway, just want to get it done so I can move on to more critical tasks.

0 Kudos
Message 7 of 7
(3,389 Views)