Formatting and importing Excel spreadsheet into table (1 Viewer)

JemCain

New member
Local time
Today, 19:23
Joined
Jul 4, 2021
Messages
11
I am trying to set-up a booking system for a kids' holiday during the summer. At present, I collect data in JotForm, from where I can export it into Excel, but not Access. So I have an Excel spreadsheet that looks like this:
1656595518405.png


and would like to import it into an Access table that looks like this:
1656595247789.png


Please would someone tell me how to do it? Or is there a better way?

Thanks very much.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:23
Joined
May 7, 2009
Messages
19,229
i think you will need custom VBA to export that.
or use Union Query.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 14:23
Joined
Feb 19, 2002
Messages
43,229
You would link to the spreadsheet. Then you would create a union query that includes 14 select queries (assuming you have 14 activities).

Select ChildNumber, 1 As ActivityNumber From YourLinkedSpreadsheet
Where [Activity 1] = "Yes"
Union Select ChildNumber, 2 As ActivityNumber From YourLinkedSpreadsheet
Where [Activity 2] = "Yes"
Union Select ChildNumber, 3 As ActivityNumber From YourLinkedSpreadsheet
Where [Activity 3] = "Yes"
...

Then Create an Append query that uses this saved Union query as its source
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 19:23
Joined
Jul 9, 2003
Messages
16,272
I'm puzzled because your conversion appears to to have lost the yes/no values?

Have a look at my my transpose tool:-


It may well convert to data for you not sure because of your missing yes/no Fields. ..
 

JemCain

New member
Local time
Today, 19:23
Joined
Jul 4, 2021
Messages
11
You would link to the spreadsheet. Then you would create a union query that includes 14 select queries (assuming you have 14 activities).

Select ChildNumber, 1 As ActivityNumber From YourLinkedSpreadsheet
Where [Activity 1] = "Yes"
Union Select ChildNumber, 2 As ActivityNumber From YourLinkedSpreadsheet
Where [Activity 2] = "Yes"
Union Select ChildNumber, 3 As ActivityNumber From YourLinkedSpreadsheet
Where [Activity 3] = "Yes"
...

Then Create an Append query that uses this saved Union query as its source
This works like a dream! Thank you so much.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 19:23
Joined
Feb 19, 2013
Messages
16,609
I'm puzzled because your conversion appears to to have lost the yes/no values?
OP only wants the yes values - correct normalisation

although I did notice child 91 has imported activity 3 when the spreadsheet says no - assumed this was just an example
 

Users who are viewing this thread

Top Bottom