- Total Members: 220,011
- Threads: 525,382
- Posts: 976,976
-
December 16th, 2012, 08:37 AM
#1
Exporting XML by single record in current form. Maybe some Pro could help.
Hey Forum,
this is my first thread and I'm sure to find some serious help in here.
Lets jump to my problem.
I created an invoice - form (RE_FRONT) getting and writing its data from/to a table called "Rechnungentbl" which is again stringed to a table called "Kundentbl".Thats because I'm using a combo-box to choose the costumer by dropdown and putting his data (stored in "Kundentbl") into some specified fields of my invoice-form.
Everything works fine so far, I am able to create new invoices, I can switch between the different records the tables are looking fine and so on.
BUT
I tried to put up a button to export the data of the actually opened form and current record as an .xml file and I searched many forums to find a direct solution via VBA and a query so that I dont have to open up the build in export xml dialog command but I already accepted, that my knowledge is too low to get that running...
My Problem:
Now I have a button using a click event and a macro with the command:
"RunMenuCommand -- Command -- ExportXML" and I manually choose the "current record" option. Thats ok for me, but it looks like the command only works if my form is in layout view. As soon as I open it up in the form view and try to export it, with the "current record setting" it tells me:
"The current record was not unique. All identical records were exported"
Here is a screenshot: https://dl-web.dropbox.com/get/PROBL...jpg?w=db3f3b51
That is super strange and looks like i dont have a primary key set up, but it is and why does the command work in the layout view and not in the form view...
Thats a lot of information, but I really really hope someone may help. If you got further questions to my case please ask.
Thanks in advance...
Yours,
Michael
Similar Threads
-
By johnlio23 in forum Microsoft Access Help
Replies: 3
Last Post: January 1st, 2011, 01:08 PM
-
By jolenec in forum Microsoft Access Help
Replies: 3
Last Post: October 22nd, 2007, 03:35 PM
-
By ehsanking in forum Microsoft Access Help
Replies: 1
Last Post: June 20th, 2005, 04:51 AM
-
By jdh77 in forum Microsoft Access Help
Replies: 2
Last Post: May 13th, 2005, 07:38 AM
-
By dutta_swapan in forum ASP Development
Replies: 2
Last Post: December 1st, 2004, 04:49 PM