Dear all,
Recently I have come across a problem regarding the use of pulling external data from XML files to Excel 2010.
I work for a very small hotel. The hotel database we are using is very poor by any standard, so we cannot but make up its deficiencies by pulling some of its data to Excel.
The pulled external data basically has 2 columns, Room and Guest, in Excel table. The third one, "Special Needs", is the extra column I added for entering supplementary information about the guest. As an example shown below, the special needs of guests A and C have been manually entered:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Room[/TD]
[TD]Guest[/TD]
[TD]Special Needs[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]A[/TD]
[TD]No calls after 21:00[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]C[/TD]
[TD]Need 1 extra pillow[/TD]
[/TR]
</tbody>[/TABLE]
The next day, Guest X of Room 103 checked in. After refresh, so unexpectedly, the result is something like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Room[/TD]
[TD]Guest[/TD]
[TD]Special Needs[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]A[/TD]
[TD]No calls after 21:00[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]X[/TD]
[TD]Need 1 extra pillow[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Instead of sticking to Room 104, the manually entered information sticks to the third row where the information was originally entered.
Several days later, Guest A of Room 101 checked out. Now my table is something like this after refresh:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Room[/TD]
[TD]Guest[/TD]
[TD]Special Needs[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]B[/TD]
[TD]No calls after 21:00[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]X[/TD]
[TD]Need 1 extra pillow[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The special needs of guest A didn't deleted along with the guest.
May I ask how I can remedy this situation? Thanks for your advice in advance.
Recently I have come across a problem regarding the use of pulling external data from XML files to Excel 2010.
I work for a very small hotel. The hotel database we are using is very poor by any standard, so we cannot but make up its deficiencies by pulling some of its data to Excel.
The pulled external data basically has 2 columns, Room and Guest, in Excel table. The third one, "Special Needs", is the extra column I added for entering supplementary information about the guest. As an example shown below, the special needs of guests A and C have been manually entered:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Room[/TD]
[TD]Guest[/TD]
[TD]Special Needs[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]A[/TD]
[TD]No calls after 21:00[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]C[/TD]
[TD]Need 1 extra pillow[/TD]
[/TR]
</tbody>[/TABLE]
The next day, Guest X of Room 103 checked in. After refresh, so unexpectedly, the result is something like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Room[/TD]
[TD]Guest[/TD]
[TD]Special Needs[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]A[/TD]
[TD]No calls after 21:00[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]X[/TD]
[TD]Need 1 extra pillow[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Instead of sticking to Room 104, the manually entered information sticks to the third row where the information was originally entered.
Several days later, Guest A of Room 101 checked out. Now my table is something like this after refresh:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Room[/TD]
[TD]Guest[/TD]
[TD]Special Needs[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]B[/TD]
[TD]No calls after 21:00[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]X[/TD]
[TD]Need 1 extra pillow[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]C[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The special needs of guest A didn't deleted along with the guest.
May I ask how I can remedy this situation? Thanks for your advice in advance.