Hi - thanks for your response. Unfortunately I have no way to link to the form, but here is the only code i have written:
public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
SPSite currentSite = ...