Function AbrirConsultas_CriaTab()
On Error GoTo AbrirConsultas_CriaTab_Err
DoCmd.SetWarnings False
DoCmd.OpenQuery "Variacao 01 02 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 02 03 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 03 04 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 04 05 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 05 06 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 06 07 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 07 08 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 08 09 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 09 10 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 10 11 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 11 12 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 12 13 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 13 14 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 14 15 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 15 16 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 16 17 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 17 18 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 18 19 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 19 20 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 20 21 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 21 22 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 22 23 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 23 24 - cria tab", acViewNormal, acEdit
DoCmd.OpenQuery "Variacao 24 25 - cria tab", acViewNormal, acEdit
DoCmd.SetWarnings True
AbrirConsultas_CriaTab_Exit:
Exit Function
AbrirConsultas_CriaTab_Err:
MsgBox Error$
Resume AbrirConsultas_CriaTab_Exit
End Function