HELP after a network failure, all queries went blank (1 Viewer)

TiagoDM

Registered User.
Local time
Today, 08:47
Joined
Apr 19, 2011
Messages
22
Help plz. After a network failure, I closed my access DB. When I reopened, all my queries went blank with absolutely no fields. Any idea why or how to fix it? I didn't have a "backup" before.

I have split the DB into front and backend. My backend is perfect, but my front end is missing all queries. The names are therem but when I open it's all blank. My forms don't work because of that. What can I do?

Thanks in advance,

Tiago
 

vbaInet

AWF VIP
Local time
Today, 08:47
Joined
Jan 22, 2010
Messages
26,374
Use some code to get all the SQL statements then copy and paste them back in. Some aircode:
Code:
Dim qdf As DAO.QueryDef

For Each qdf In CurrentDb.QueryDefs
    Debug.print qdf.Name & vbNewLine & qdf.SQL & vbNewLine & vbNewLine
Next
Look in the Immediate Window for the printouts.
 

TiagoDM

Registered User.
Local time
Today, 08:47
Joined
Apr 19, 2011
Messages
22
Use some code to get all the SQL statements then copy and paste them back in. Some aircode:
Code:
Dim qdf As DAO.QueryDef

For Each qdf In CurrentDb.QueryDefs
    Debug.print qdf.Name & vbNewLine & qdf.SQL & vbNewLine & vbNewLine
Next
Look in the Immediate Window for the printouts.

Hey I searched into the netword and I found an "old version", luckly all the queries are there, only a few minor changes are needed.

I also used the code you posted, here's the result (I put it in a sub called testee):

testee
~sq_cCópia de Registo_teste_criancas_tudo~sq_ccsPDILista
SELECT;



~sq_cCópia de Registo_teste_criancas_tudo~sq_cSalas
SELECT;



~sq_cFicha Informativa Da Criança~sq_cAutorizações subformulário
SELECT;



~sq_cfrmIrmao~sq_cAutorizações subformulário
SELECT;



~sq_cfrmUtilizadores~sq_cIncorporado15
SELECT;



~sq_cfrmUtilizadoresLogados~sq_cLista41
SELECT;



~sq_cRegisto_teste_criancas_tudo~sq_cAutorizações subformulário
SELECT;



~sq_cRegisto_teste_criancas_tudo~sq_ccsModificado subformulário1
SELECT;



~sq_cRegisto_teste_criancas_tudo~sq_ccsPDILista
SELECT;



~sq_cRegisto_teste_criancas_tudo~sq_cSubFormPrgAcIniCreche
SELECT;



~sq_cSalas_teste~sq_cLista0
SELECT;



~sq_cTurmas~sq_cCrianças
SELECT;



~sq_cTurmas~sq_cLista28
SELECT;



~sq_dFicha Inf Crianca Filtro~sq_dAutorizações subformulário
SELECT;



~sq_dFicha Inf Crianca Pesq NumID~sq_dAutorizações subformulário
SELECT;



~sq_dFicha Inf Crianca por Sala~sq_dAutorizações subformulário
SELECT;



~sq_dFicha Inf Crianca Teste~sq_dAutorizações subformulário
SELECT;



~sq_dFicha Inf Crianca~sq_dAutorizações subformulário
SELECT;



~sq_fEcrã Arranque Activar Conteudo
SELECT;



~sq_ffrmUtilizadoresLogados
SELECT;



~sq_ffrmValorOrdMin
SELECT;



~sq_fMenu Principal
SELECT;



~sq_fSair Access
SELECT;



~sq_fTurmas
SELECT;



~sq_fVersao_be
SELECT;



csMudanca_Sala2
UPDATE Salas INNER JOIN Crianças ON Salas.IDSala_salas = Crianças.IDSalas SET Crianças.IDSalas = [Formulários]![frmTransitoDePara]![cxPara]
WHERE (((Crianças.IDSalas)=[Formulários]![frmTransitoDePara]![cxDe]) AND ((Crianças.Desistência)=False));

So, they're all empty and I dunno why... luckly I have that "old backup" and I'll copy and paste all the queries there.

Thank you
 

vbaInet

AWF VIP
Local time
Today, 08:47
Joined
Jan 22, 2010
Messages
26,374
Very strange Tiago.

See why it's good to regularly backup ;)
 

TiagoDM

Registered User.
Local time
Today, 08:47
Joined
Apr 19, 2011
Messages
22
Yes, everyone should and I'll always backup regulary from now on.

Thank you.
 

Users who are viewing this thread

Top Bottom